Delete ReadAnythingOmniboxIcon experiment and remove all related
code.
Fixed: 329298677
Change-Id: I3ed1d3f3a23917f21d953561b696e4967da3ff34
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5598479
Reviewed-by: Rushan Suleymanov <[email protected]>
Commit-Queue: Abigail Klein <[email protected]>
Reviewed-by: Jacob Francis <[email protected]>
Reviewed-by: Avi Drissman <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1311246}
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index e8487c1..f85be4f 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -1114,6 +1114,12 @@
inline constexpr char kTrackingProtectionOnboardingNoticeLastRequested[] =
"tracking_protection.tracking_protection_onboarding_notice_last_requested";
+// Deprecated 06/2024.
+#if !BUILDFLAG(IS_ANDROID)
+inline constexpr char kAccessibilityReadAnythingOmniboxIconLabelShownCount[] =
+ "settings.a11y.read_anything.omnibox_icon_label_shown_count";
+#endif
+
// Register local state used only for migration (clearing or moving to a new
// key).
void RegisterLocalStatePrefsForMigration(PrefRegistrySimple* registry) {
@@ -1612,6 +1618,12 @@
base::Time());
registry->RegisterTimePref(kTrackingProtectionOnboardingNoticeLastRequested,
base::Time());
+
+// Deprecated 06/2024.
+#if !BUILDFLAG(IS_ANDROID)
+ registry->RegisterIntegerPref(
+ kAccessibilityReadAnythingOmniboxIconLabelShownCount, 0);
+#endif
}
void ClearSyncRequestedPrefAndMaybeMigrate(PrefService* profile_prefs) {
@@ -2995,6 +3007,12 @@
profile_prefs->ClearPref(kTrackingProtectionOnboardingNoticeFirstRequested);
profile_prefs->ClearPref(kTrackingProtectionOnboardingNoticeLastRequested);
+ // Added 06/2024.
+#if !BUILDFLAG(IS_ANDROID)
+ profile_prefs->ClearPref(
+ kAccessibilityReadAnythingOmniboxIconLabelShownCount);
+#endif
+
// Please don't delete the following line. It is used by PRESUBMIT.py.
// END_MIGRATE_OBSOLETE_PROFILE_PREFS