Remove babel orca code from live caption controller.
We moved to use a new caption controller for babel orca.
AX-Relnotes: n/a.
Bug: b:386835456
Change-Id: I8d8663dc9c1fdd93060e57ff031937b3fea1e1ff
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6258902
Reviewed-by: Avynn Donaghe <[email protected]>
Reviewed-by: Gabriel Charette <[email protected]>
Commit-Queue: Ahmed Nasr <[email protected]>
Reviewed-by: Evan Liu <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1420721}
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index 246cefd9..b2c3c371 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -1100,6 +1100,14 @@
"local_passwords_migration_warning_shown_at_startup";
#endif // BUILDFLAG(IS_ANDROID)
+#if BUILDFLAG(IS_CHROMEOS)
+// Deprecated 2/2025.
+inline constexpr char kLiveCaptionUserMicrophoneEnabled[] =
+ "accessibility.captions.user_microphone_captioning_enabled";
+inline constexpr char kUserMicrophoneCaptionLanguageCode[] =
+ "accessibility.captions.user_microphone_language_code";
+#endif // BUILDFLAG(IS_CHROMEOS)
+
// Register local state used only for migration (clearing or moving to a new
// key).
void RegisterLocalStatePrefsForMigration(PrefRegistrySimple* registry) {
@@ -1535,6 +1543,12 @@
registry->RegisterBooleanPref(kLocalPasswordMigrationWarningShownAtStartup,
false);
#endif // BUILDFLAG(IS_ANDROID)
+
+#if BUILDFLAG(IS_CHROMEOS)
+ // Deprecated 02/2025.
+ registry->RegisterBooleanPref(kLiveCaptionUserMicrophoneEnabled, false);
+ registry->RegisterStringPref(kUserMicrophoneCaptionLanguageCode, "");
+#endif // BUILDFLAG(IS_CHROMEOS)
}
} // namespace
@@ -2825,6 +2839,12 @@
profile_prefs->ClearPref(kLocalPasswordMigrationWarningShownAtStartup, );
#endif // BUILDFLAG(IS_ANDROID)
+#if BUILDFLAG(IS_CHROMEOS)
+ // Deprecated 02/2025.
+ profile_prefs->ClearPref(kLiveCaptionUserMicrophoneEnabled);
+ profile_prefs->ClearPref(kUserMicrophoneCaptionLanguageCode);
+#endif // BUILDFLAG(IS_CHROMEOS)
+
// Please don't delete the following line. It is used by PRESUBMIT.py.
// END_MIGRATE_OBSOLETE_PROFILE_PREFS