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

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

Issue 1008273003: Rename HotwordServiceFactory::IsHotwordHardwareAvailable() to IsAlwaysOnAvailable(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « chrome/browser/extensions/component_loader.cc ('k') | chrome/browser/search/hotword_service_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/search/hotword_service.cc
diff --git a/chrome/browser/search/hotword_service.cc b/chrome/browser/search/hotword_service.cc
index ee90a544a30cc0b8a7d69083acafa8a04059ea90..e460b85af5db9d393e46cc447c9febb13a908170 100644
--- a/chrome/browser/search/hotword_service.cc
+++ b/chrome/browser/search/hotword_service.cc
@@ -383,7 +383,7 @@ HotwordService::HotwordService(Profile* profile)
SetAudioHistoryHandler(new HotwordAudioHistoryHandler(
profile_, base::MessageLoop::current()->task_runner()));
- if (HotwordServiceFactory::IsHotwordHardwareAvailable() &&
+ if (HotwordServiceFactory::IsAlwaysOnAvailable() &&
IsHotwordAllowed() &&
IsExperimentalHotwordingEnabled()) {
// Show the hotword notification in 5 seconds if the experimental flag is
@@ -686,13 +686,13 @@ bool HotwordService::IsAlwaysOnEnabled() {
return
profile_->GetPrefs()->HasPrefPath(prefs::kHotwordAlwaysOnSearchEnabled) &&
profile_->GetPrefs()->GetBoolean(prefs::kHotwordAlwaysOnSearchEnabled) &&
- HotwordServiceFactory::IsHotwordHardwareAvailable();
+ HotwordServiceFactory::IsAlwaysOnAvailable();
}
bool HotwordService::IsSometimesOnEnabled() {
return profile_->GetPrefs()->HasPrefPath(prefs::kHotwordSearchEnabled) &&
profile_->GetPrefs()->GetBoolean(prefs::kHotwordSearchEnabled) &&
- !HotwordServiceFactory::IsHotwordHardwareAvailable();
+ !HotwordServiceFactory::IsAlwaysOnAvailable();
}
void HotwordService::EnableHotwordExtension(
« no previous file with comments | « chrome/browser/extensions/component_loader.cc ('k') | chrome/browser/search/hotword_service_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698