| 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(
|
|
|