[a11y] Remove "Shortcut to disable" pref from Mouse Keys
BUG=b:259372916
TEST=Enable mouse keys feature flag. Check that this option no longer
exists on the settings page.
Change-Id: Idb93b664ded6481042736806fb0c4cd31ccbcf8a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5531211
Reviewed-by: Connie Xu <[email protected]>
Commit-Queue: Tzarial Kuznia <[email protected]>
Reviewed-by: Xiyuan Xia <[email protected]>
Reviewed-by: Achuith Bhandarkar <[email protected]>
Reviewed-by: Akihiro Ota <[email protected]>
Reviewed-by: Wes Okuhara <[email protected]>
Reviewed-by: Ahmed Fakhry <[email protected]>
Reviewed-by: Dominic Battre <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1299440}
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index ce42f0c..6aa8a33 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -1075,6 +1075,14 @@
"browser.has_shown_refresh_2023_whats_new";
#endif
+#if BUILDFLAG(IS_CHROMEOS_ASH)
+// Deprecated 05/2024
+// A boolean pref which determines if you can pause mouse keys with a
+// keyboard shortcut.
+inline constexpr char kAccessibilityMouseKeysShortcutToPauseEnabled[] =
+ "settings.a11y.mouse_keys.ctrl_to_pause_enabled";
+#endif // BUILDFLAG(IS_CHROMEOS_ASH)
+
// Register local state used only for migration (clearing or moving to a new
// key).
void RegisterLocalStatePrefsForMigration(PrefRegistrySimple* registry) {
@@ -1540,6 +1548,10 @@
// Deprecated 04/2024.
registry->RegisterBooleanPref(kMetricsUserInheritOwnerConsent, true);
registry->RegisterBooleanPref(kGlanceablesEnabled, true);
+
+ // Deprecated 05/2024.
+ registry->RegisterBooleanPref(kAccessibilityMouseKeysShortcutToPauseEnabled,
+ true);
#endif // BUILDFLAG(IS_CHROMEOS_ASH)
}
@@ -2898,6 +2910,9 @@
// Added 04/2024.
profile_prefs->ClearPref(kMetricsUserInheritOwnerConsent);
profile_prefs->ClearPref(kGlanceablesEnabled);
+
+ // Added 05/2024.
+ profile_prefs->ClearPref(kAccessibilityMouseKeysShortcutToPauseEnabled);
#endif // BUILDFLAG(IS_CHROMEOS_ASH)
// Please don't delete the following line. It is used by PRESUBMIT.py.