Retrieve UMA consent for a given device.
This method is needed before updating the new "full_hardware_class"
field to our DeviceInfoSpecifics proto. We must check whether the user
has given UMA consent before sending hardware class information apart of
the Chrome Sync ping.
Currently, the UMA consent can be retireved once the browser process
begins by calling IsMetricsAndCrashReportingEnabled() in
ChromeMetricsServiceAccessor class.
Bug: 1188978
Change-Id: I154de47c2acf1c6d5e2e44e13291a55f31bd8436
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2816348
Commit-Queue: Hirthanan Subenderan <[email protected]>
Auto-Submit: Hirthanan Subenderan <[email protected]>
Reviewed-by: Rushan Suleymanov <[email protected]>
Reviewed-by: Weilun Shi <[email protected]>
Reviewed-by: Olivier Robin <[email protected]>
Cr-Commit-Position: refs/heads/master@{#873452}
diff --git a/chrome/browser/BUILD.gn b/chrome/browser/BUILD.gn
index d57a3e977..c56475a 100644
--- a/chrome/browser/BUILD.gn
+++ b/chrome/browser/BUILD.gn
@@ -1731,6 +1731,8 @@
"sync/bookmark_sync_service_factory.h",
"sync/chrome_sync_client.cc",
"sync/chrome_sync_client.h",
+ "sync/device_info_sync_client_impl.cc",
+ "sync/device_info_sync_client_impl.h",
"sync/device_info_sync_service_factory.cc",
"sync/device_info_sync_service_factory.h",
"sync/glue/extensions_activity_monitor.cc",