[Live Caption] Move soda pref registration to SodaInstaller(s) and decouple it from component updater.
Before change:
All soda-related prefs are registered but some (e.g. kSodaBinaryPath)
are not used on the ChromeOS platform. Pref registration is linked to
component updater, which is not used for soda on ChromeOS.
After change:
Only register soda prefs which are relevant to the platform. Unlink
pref registration from component updater, and move pref registration
code into the SodaInstaller(s).
Bug: 1055150, 1196105
AX-Relnotes: n/a.
Change-Id: Idb4056ac8d742ddd546d953d888efa7d4a14fe42
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2838608
Reviewed-by: Avi Drissman <[email protected]>
Reviewed-by: Abigail Klein <[email protected]>
Commit-Queue: Amanda Deacon <[email protected]>
Cr-Commit-Position: refs/heads/master@{#877358}
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index 2bc65a0..e2d3347 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -769,6 +769,7 @@
media_router::RegisterLocalStatePrefs(registry);
metrics::TabStatsTracker::RegisterPrefs(registry);
RegisterBrowserPrefs(registry);
+ speech::SodaInstaller::RegisterLocalStatePrefs(registry);
StartupBrowserCreator::RegisterLocalStatePrefs(registry);
task_manager::TaskManagerInterface::RegisterPrefs(registry);
UpgradeDetector::RegisterPrefs(registry);