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

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

Issue 460113005: Adds the audio history and always on hotwording settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed errors Created 6 years, 4 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 d1a55ed84b9802b23fcdbeba151acb7f5087e7c9..827195bf115505596e210e7b68959ecc441b584c 100644
--- a/chrome/browser/search/hotword_service_factory.cc
+++ b/chrome/browser/search/hotword_service_factory.cc
@@ -98,7 +98,7 @@ void HotwordServiceFactory::RegisterProfilePrefs(
false,
user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
// Although this is default true, users will not send back information to
- // Google unless they have opted in to Hotwording at which point they must
+ // Google unless they have opted into Hotwording at which point they must
// also confirm that they wish this preference to be true or opt out of it.
prefs->RegisterBooleanPref(prefs::kHotwordAudioLoggingEnabled,
true,
@@ -106,6 +106,9 @@ void HotwordServiceFactory::RegisterProfilePrefs(
prefs->RegisterStringPref(prefs::kHotwordPreviousLanguage,
std::string(),
user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
+ prefs->RegisterBooleanPref(prefs::kHotwordAlwaysOnSearchEnabled,
Matt Giuca 2014/08/12 08:37:39 Does not compile without OS_CHROMEOS. Should be gu
kcarattini 2014/08/13 03:51:53 Acknowledged.
+ false,
+ user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
}
KeyedService* HotwordServiceFactory::BuildServiceInstanceFor(

Powered by Google App Engine
This is Rietveld 408576698