waffle: Remove the keywords_use_extended_list pref
The default_search_provider.keywords_use_extended_list pref was
used to make sure we correctly recompute search engines lists when
the state of the feature extending the number of items in the list
would change. As this is fully launched and the feature removed, this
pref is now unnecessary, and is in the way of other refactorings.
Fixed: b:304947278
Change-Id: Ieddc1fbe84995f6e330611e2077842825f4f25a7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6269214
Commit-Queue: Nicolas Dossou-Gbété <[email protected]>
Reviewed-by: Alex Ilin <[email protected]>
Auto-Submit: Nicolas Dossou-Gbété <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1421079}
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index bc9b642..3581d23d 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -1092,6 +1092,10 @@
inline constexpr char kUserAgentClientHintsGREASEUpdateEnabled[] =
"policy.user_agent_client_hints_grease_update_enabled";
+// Deprecated 02/2025.
+inline constexpr char kDefaultSearchProviderKeywordsUseExtendedList[] =
+ "default_search_provider.keywords_use_extended_list";
+
#if BUILDFLAG(IS_ANDROID)
// Deprecated 2/2025.
inline constexpr char kLocalPasswordsMigrationWarningShownTimestamp[] =
@@ -1541,6 +1545,10 @@
registry->RegisterBooleanPref(kUsedPolicyCertificates, false);
#endif // BUILDFLAG(IS_CHROMEOS)
+ // Deprecated 02/2025.
+ registry->RegisterBooleanPref(kDefaultSearchProviderKeywordsUseExtendedList,
+ false);
+
#if BUILDFLAG(IS_ANDROID)
// Deprecated 02/2025.
registry->RegisterTimePref(kLocalPasswordsMigrationWarningShownTimestamp,
@@ -2843,6 +2851,9 @@
profile_prefs->ClearPref(kUsedPolicyCertificates);
#endif // BUILDFLAG(IS_CHROMEOS)
+ // Added 02/2025.
+ profile_prefs->ClearPref(kDefaultSearchProviderKeywordsUseExtendedList);
+
#if BUILDFLAG(IS_ANDROID)
// Added 02/2025.
profile_prefs->ClearPref(kLocalPasswordsMigrationWarningShownTimestamp);