Add various metrics for system mic/camera permissions on Mac.
This will be used to evaluate the effect of an upcoming UI for informing
users about blocked such permissions and how they can fix it.
See histograms.xml for explanations of the added metrics.
Bug: 940893
Change-Id: Ice69290e530608a819e0fe9cd039e9b10ed6b3d2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1541249
Reviewed-by: Brian White <[email protected]>
Reviewed-by: Oskar Sundbom <[email protected]>
Reviewed-by: Tommi <[email protected]>
Reviewed-by: Marc Treib <[email protected]>
Reviewed-by: Dominic Battré <[email protected]>
Auto-Submit: Henrik Grunell <[email protected]>
Commit-Queue: Marc Treib <[email protected]>
Commit-Queue: Henrik Grunell <[email protected]>
Cr-Commit-Position: refs/heads/master@{#650227}
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index 8169d37c..6028c14 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -34,6 +34,7 @@
#include "chrome/browser/media/router/media_router_feature.h"
#include "chrome/browser/media/webrtc/media_capture_devices_dispatcher.h"
#include "chrome/browser/media/webrtc/media_stream_devices_controller.h"
+#include "chrome/browser/media/webrtc/system_media_capture_permissions_stats_mac.h"
#include "chrome/browser/metrics/chrome_metrics_service_client.h"
#include "chrome/browser/net/net_error_tab_helper.h"
#include "chrome/browser/net/prediction_options.h"
@@ -592,6 +593,7 @@
confirm_quit::RegisterLocalState(registry);
OSCrypt::RegisterLocalPrefs(registry);
QuitWithAppsController::RegisterPrefs(registry);
+ system_media_permissions::RegisterSystemMediaPermissionStatesPrefs(registry);
#endif
#if defined(OS_WIN)