[Extensions] Enable action-API getters and setters
Enable the getters and setters for the "action" API, including:
action.getPopup
action.setPopup
action.getTitle
action.setTitle
action.getBadgeText
action.setBadgeText
action.getBadgeBackgroundColor
action.setBadgeBackgroundColor
Add a parameterized end-to-end test that exercises each of these for
both the action API and browserAction and pageAction (where
applicable - pageAction does not have all of these options).
Bug: 893373
Change-Id: I9e93650a0228b7b3d696174992a6622c64bce2b3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1684535
Commit-Queue: Devlin <[email protected]>
Reviewed-by: Karan Bhatia <[email protected]>
Cr-Commit-Position: refs/heads/master@{#676945}
diff --git a/extensions/browser/extension_function_histogram_value.h b/extensions/browser/extension_function_histogram_value.h
index a5d6016..bf2c5a64 100644
--- a/extensions/browser/extension_function_histogram_value.h
+++ b/extensions/browser/extension_function_histogram_value.h
@@ -1413,6 +1413,14 @@
ACTION_SETICON = 1350,
AUTOTESTPRIVATE_GETALLENTERPRISEPOLICIES = 1351,
ACCESSIBILITY_PRIVATE_ONSCROLLABLEBOUNDSFORPOINTFOUND = 1352,
+ ACTION_GETPOPUP = 1353,
+ ACTION_SETPOPUP = 1354,
+ ACTION_GETTITLE = 1355,
+ ACTION_SETTITLE = 1356,
+ ACTION_GETBADGETEXT = 1357,
+ ACTION_SETBADGETEXT = 1358,
+ ACTION_GETBADGEBACKGROUNDCOLOR = 1359,
+ ACTION_SETBADGEBACKGROUNDCOLOR = 1360,
// Last entry: Add new entries above, then run:
// python tools/metrics/histograms/update_extension_histograms.py
ENUM_BOUNDARY