Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(324)

Unified Diff: chrome/browser/search/hotword_service_factory.cc

Issue 330193005: [Hotword] Uninstall and reinstall the extension upon language change. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more cleanup Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/search/hotword_service_factory.cc
diff --git a/chrome/browser/search/hotword_service_factory.cc b/chrome/browser/search/hotword_service_factory.cc
index 53de9226e1c3a0ef371eb9fce872fb235bbf18c3..d1a55ed84b9802b23fcdbeba151acb7f5087e7c9 100644
--- a/chrome/browser/search/hotword_service_factory.cc
+++ b/chrome/browser/search/hotword_service_factory.cc
@@ -103,6 +103,9 @@ void HotwordServiceFactory::RegisterProfilePrefs(
prefs->RegisterBooleanPref(prefs::kHotwordAudioLoggingEnabled,
true,
user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
+ prefs->RegisterStringPref(prefs::kHotwordPreviousLanguage,
+ std::string(),
+ user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
}
KeyedService* HotwordServiceFactory::BuildServiceInstanceFor(

Powered by Google App Engine
This is Rietveld 408576698