Move Autofill Assistant prefs to AutofillAssistant class.
This CL moves the profile prefs that are currently used for APC on
Desktop to a central location inside of components/autofill_assitant.
This is in preparation for introducing similar profile prefs on Android
(where SharedPreferences is currently used). The pref keys themselves
remain the same.
The CL also changes the default value for the recently introduced
AutofillAssistantEnabled pref, which was a TODO left in the code.
Mini doc explaining the role of these prefs:
go/apc-enterprise-policy
Bug: 13358131
Change-Id: I4f5bf0c7863ac7e88bc03b31aa48081a5e6c946d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3874687
Commit-Queue: Jan Keitel <[email protected]>
Reviewed-by: Bruno Braga <[email protected]>
Reviewed-by: Reilly Grant <[email protected]>
Reviewed-by: Clemens Arbesser <[email protected]>
Reviewed-by: Demetrios Papadopoulos <[email protected]>
Reviewed-by: Dominic Battré <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1043859}
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index 8b4bf99e..8368af9 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -243,7 +243,6 @@
#include "components/permissions/contexts/geolocation_permission_context_android.h"
#include "components/query_tiles/tile_service_prefs.h"
#else // BUILDFLAG(IS_ANDROID)
-#include "chrome/browser/autofill_assistant/password_change/apc_client.h"
#include "chrome/browser/cart/cart_service.h"
#include "chrome/browser/device_api/device_service_impl.h"
#include "chrome/browser/gcm/gcm_product_util.h"
@@ -270,6 +269,7 @@
#include "chrome/browser/ui/webui/tab_search/tab_search_prefs.h"
#include "chrome/browser/ui/webui/whats_new/whats_new_ui.h"
#include "chrome/browser/upgrade_detector/upgrade_detector.h"
+#include "components/autofill_assistant/browser/public/autofill_assistant.h"
#include "components/live_caption/live_caption_controller.h"
#include "components/ntp_tiles/custom_links_manager_impl.h"
#endif // BUILDFLAG(IS_ANDROID)
@@ -1401,7 +1401,7 @@
variations::VariationsService::RegisterProfilePrefs(registry);
video_tutorials::RegisterPrefs(registry);
#else // BUILDFLAG(IS_ANDROID)
- ApcClient::RegisterPrefs(registry);
+ autofill_assistant::AutofillAssistant::RegisterProfilePrefs(registry);
AppShortcutManager::RegisterProfilePrefs(registry);
browser_sync::ForeignSessionHandler::RegisterProfilePrefs(registry);
BrowserFeaturePromoSnoozeService::RegisterProfilePrefs(registry);