[Clank CBCM] Enable policy MetricsReportingEnabled on Android
This CL enables propagation of MetricsReportingEnabled policy
state into metrics reporting state on Android. Thus disabling
metrics reporting if explicitly disabled by policy.
Also, this enables MetricsReportingEnable pref testcase.
Changes to UI are going to be done in a follow-up.
While deciding on strategies to rollout this feature,
CLI flag activate-metrics-reporting-enabled-policy is used
to enable this policy.
Bug: 878558
Change-Id: Ibe44ec1beed8f42adf537f57d8db1c25365b9aa2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3268453
Reviewed-by: Alexei Svitkine <[email protected]>
Reviewed-by: Owen Min <[email protected]>
Reviewed-by: Fabio Tirelo <[email protected]>
Reviewed-by: Filip Gorski <[email protected]>
Commit-Queue: Og Astorga <[email protected]>
Cr-Commit-Position: refs/heads/main@{#950782}
diff --git a/chrome/browser/flag_descriptions.cc b/chrome/browser/flag_descriptions.cc
index 24867a0..7f05dd71 100644
--- a/chrome/browser/flag_descriptions.cc
+++ b/chrome/browser/flag_descriptions.cc
@@ -2837,6 +2837,12 @@
"Whether the UI and underlying code for page zoom should be enabled to"
" allow a user to increase/decrease the web contents zoom factor.";
+const char kActivateMetricsReportingEnabledPolicyAndroidName[] =
+ "Activate MetricsReportingEnabled policy on Android";
+const char kActivateMetricsReportingEnabledPolicyAndroidDescription[] =
+ " Allows admins to block metrics reporting by using "
+ " MetricsReportingEnabled policy.";
+
const char kAddToHomescreenIPHName[] = "Add to homescreen IPH";
const char kAddToHomescreenIPHDescription[] =
" Shows in-product-help messages educating users about add to homescreen "