[waffle]Save the guest DSE prepopulated id in a local state pref
We save the prepopulated id of the search engine that is chosen in the
search engine choice dialog while in a guest session.
This will later be used to decide whether the dialog should be
displayed and to set the default search engine in guest mode.
NO_IFTTT=Formatting changes triggered IFTTT
Fixed: b:364233322
Change-Id: Ibb5aa5377d82e26173d6819bed2fdfd737bfdbaf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5832487
Reviewed-by: Nicolas Dossou-Gbété <[email protected]>
Reviewed-by: David Roger <[email protected]>
Commit-Queue: Jack Yammine <[email protected]>
Auto-Submit: Jack Yammine <[email protected]>
Reviewed-by: Arthur Sonzogni <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1351921}
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index f4bb519..5dc4b0f 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -170,6 +170,7 @@
#include "components/safe_browsing/content/common/file_type_policies_prefs.h"
#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
#include "components/saved_tab_groups/pref_names.h"
+#include "components/search_engines/search_engine_choice/search_engine_choice_service.h"
#include "components/search_engines/template_url_prepopulate_data.h"
#include "components/security_interstitials/content/insecure_form_blocking_page.h"
#include "components/security_interstitials/content/stateful_ssl_host_state_delegate.h"
@@ -1581,6 +1582,7 @@
#endif
RegisterScreenshotPrefs(registry);
safe_browsing::RegisterLocalStatePrefs(registry);
+ search_engines::SearchEngineChoiceService::RegisterLocalStatePrefs(registry);
secure_origin_allowlist::RegisterPrefs(registry);
segmentation_platform::SegmentationPlatformService::RegisterLocalStatePrefs(
registry);