Add a policy to enable / disable Device Attributes web API
WICG explainer: https://github.com/WICG/WebApiDevice/blob/main/Explainer.md
We plan to run a origin trial for Device Attributes web API. A setting
will be added on DPanel, then admins are able to opt-out though this
API is allowed to force-installed applications by default. (This rule
keeps consistent with the current Chrome extension API version.)
The new policy introduced in this CL is used to control this DPanel
setting.
Bug: 1132865
Change-Id: I76304d51e7f3f5736e8265949d7ef60de3873f7c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2941585
Commit-Queue: Anqing Zhao <[email protected]>
Reviewed-by: Dominic Battré <[email protected]>
Reviewed-by: Sergey Poromov <[email protected]>
Reviewed-by: Anatoliy Potapchuk <[email protected]>
Cr-Commit-Position: refs/heads/master@{#891174}
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index 4aaaa27..efc1e36 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -228,6 +228,7 @@
#else // defined(OS_ANDROID)
#include "chrome/browser/accessibility/live_caption_controller.h"
#include "chrome/browser/cart/cart_service.h"
+#include "chrome/browser/device_api/device_service_impl.h"
#include "chrome/browser/enterprise/reporting/prefs.h"
#include "chrome/browser/gcm/gcm_product_util.h"
#include "chrome/browser/intranet_redirect_detector.h"
@@ -1091,11 +1092,12 @@
video_tutorials::RegisterPrefs(registry);
feed::prefs::RegisterFeedSharedProfilePrefs(registry);
feed::RegisterProfilePrefs(registry);
-#else // defined(OS_ANDROID)
+#else // defined(OS_ANDROID)
AppShortcutManager::RegisterProfilePrefs(registry);
browser_sync::ForeignSessionHandler::RegisterProfilePrefs(registry);
captions::LiveCaptionController::RegisterProfilePrefs(registry);
ChromeAuthenticatorRequestDelegate::RegisterProfilePrefs(registry);
+ DeviceServiceImpl::RegisterProfilePrefs(registry);
DevToolsWindow::RegisterProfilePrefs(registry);
DriveService::RegisterProfilePrefs(registry);
enterprise_connectors::RegisterProfilePrefs(registry);