Index: chrome/browser/ui/app_list/start_page_service.cc |
diff --git a/chrome/browser/ui/app_list/start_page_service.cc b/chrome/browser/ui/app_list/start_page_service.cc |
index 09c66ca0cf5e9bd799579033518de37491075e47..562030e32819e7fb6f4689ba6aeda52b45ee20ea 100644 |
--- a/chrome/browser/ui/app_list/start_page_service.cc |
+++ b/chrome/browser/ui/app_list/start_page_service.cc |
@@ -202,13 +202,15 @@ void StartPageService::ToggleSpeechRecognition() { |
} |
bool StartPageService::HotwordEnabled() { |
+// Voice input for the launcher is unsupported on non-ChromeOS platforms. |
+// TODO(amistry): Make speech input, and hotwording, work on non-ChromeOS. |
+#if defined(OS_CHROMEOS) |
if (HotwordService::IsExperimentalHotwordingEnabled()) { |
auto prefs = profile_->GetPrefs(); |
return HotwordServiceFactory::IsServiceAvailable(profile_) && |
(prefs->GetBoolean(prefs::kHotwordSearchEnabled) || |
prefs->GetBoolean(prefs::kHotwordAlwaysOnSearchEnabled)); |
} |
-#if defined(OS_CHROMEOS) |
return HotwordServiceFactory::IsServiceAvailable(profile_) && |
profile_->GetPrefs()->GetBoolean(prefs::kHotwordSearchEnabled); |
#else |