[Shopping list] Add policy for enterprise
The policy is not yet used, but will be in followup patches. This also
includes a move of the preference registration out of ShoppingService.
The default state of the setting is |true|, allowing the feature
to be enabled.
Bug: 1363214
Change-Id: I083675e255abda2b693a79ca3377f7427f5fdf7b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3892144
Reviewed-by: Igor <[email protected]>
Commit-Queue: Matthew Jones <[email protected]>
Reviewed-by: David Trainor <[email protected]>
Reviewed-by: Sylvain Defresne <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1049148}
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index 4c5581f60..f729275 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -92,7 +92,7 @@
#include "components/blocked_content/safe_browsing_triggered_popup_blocker.h"
#include "components/browsing_data/core/pref_names.h"
#include "components/certificate_transparency/pref_names.h"
-#include "components/commerce/core/shopping_service.h"
+#include "components/commerce/core/pref_names.h"
#include "components/content_settings/core/browser/host_content_settings_map.h"
#include "components/custom_handlers/protocol_handler_registry.h"
#include "components/dom_distiller/core/distilled_page_prefs.h"
@@ -1280,7 +1280,7 @@
ChromeVersionService::RegisterProfilePrefs(registry);
chrome_browser_net::NetErrorTabHelper::RegisterProfilePrefs(registry);
chrome_prefs::RegisterProfilePrefs(registry);
- commerce::ShoppingService::RegisterPrefs(registry);
+ commerce::RegisterPrefs(registry);
DocumentProvider::RegisterProfilePrefs(registry);
enterprise_reporting::RegisterProfilePrefs(registry);
dom_distiller::DistilledPagePrefs::RegisterProfilePrefs(registry);