Add new app metric reporting user policies and map to pref
This change adds new app metric reporting policies that control app
inventory and usage telemetry reporting. This also maps these new
policies with respective prefs so metric reporting components can easily
look them up and subscribe to changes as needed.
Bug: b:260803048
Change-Id: I1f08d360527707af100fc96e56fc5d855c5031ea
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4508788
Reviewed-by: Anqing Zhao <[email protected]>
Reviewed-by: Tommy Nyquist <[email protected]>
Reviewed-by: Leonid Baraz <[email protected]>
Commit-Queue: Vignesh Shenvi <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1141079}
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index e056747..f0d6d64b 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -387,6 +387,7 @@
#include "chrome/browser/ash/policy/handlers/tpm_auto_update_mode_policy_handler.h"
#include "chrome/browser/ash/policy/reporting/app_install_event_log_manager_wrapper.h"
#include "chrome/browser/ash/policy/reporting/arc_app_install_event_logger.h"
+#include "chrome/browser/ash/policy/reporting/metrics_reporting/metric_reporting_prefs.h"
#include "chrome/browser/ash/policy/scheduled_task_handler/reboot_notifications_scheduler.h"
#include "chrome/browser/ash/policy/status_collector/device_status_collector.h"
#include "chrome/browser/ash/policy/status_collector/status_collector.h"
@@ -1681,6 +1682,7 @@
file_manager::prefs::RegisterProfilePrefs(registry);
bruschetta::prefs::RegisterProfilePrefs(registry);
wallpaper_handlers::prefs::RegisterProfilePrefs(registry);
+ ash::reporting::RegisterProfilePrefs(registry);
#endif // BUILDFLAG(IS_CHROMEOS_ASH)
#if BUILDFLAG(IS_CHROMEOS_LACROS)