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

Unified Diff: chrome/browser/ui/webui/app_list/start_page_handler.cc

Issue 149753002: Enables the 'hotword not listening' icon in the search box. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix breaks Created 6 years, 11 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/ui/app_list/search/search_controller.cc ('k') | ui/app_list/search_box_model.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/app_list/start_page_handler.cc
diff --git a/chrome/browser/ui/webui/app_list/start_page_handler.cc b/chrome/browser/ui/webui/app_list/start_page_handler.cc
index c93dab21c51e98841359d841ff8384d02523d7a0..2f0b3fd0b2325055c654cb2a6684d6efe65973c1 100644
--- a/chrome/browser/ui/webui/app_list/start_page_handler.cc
+++ b/chrome/browser/ui/webui/app_list/start_page_handler.cc
@@ -153,11 +153,17 @@ void StartPageHandler::HandleSpeechRecognition(const base::ListValue* args) {
std::string state_string;
CHECK(args->GetString(0, &state_string));
- SpeechRecognitionState new_state = SPEECH_RECOGNITION_NOT_STARTED;
- if (state_string == "on")
- new_state = SPEECH_RECOGNITION_ON;
- else if (state_string == "in-speech")
+ SpeechRecognitionState new_state = SPEECH_RECOGNITION_OFF;
+ if (state_string == "READY")
+ new_state = SPEECH_RECOGNITION_READY;
+ else if (state_string == "HOTWORD_RECOGNIZING")
+ new_state = SPEECH_RECOGNITION_HOTWORD_LISTENING;
+ else if (state_string == "RECOGNIZING")
+ new_state = SPEECH_RECOGNITION_RECOGNIZING;
+ else if (state_string == "IN_SPEECH")
new_state = SPEECH_RECOGNITION_IN_SPEECH;
+ else if (state_string == "STOPPING")
+ new_state = SPEECH_RECOGNITION_STOPPING;
StartPageService* service =
StartPageService::Get(Profile::FromWebUI(web_ui()));
« no previous file with comments | « chrome/browser/ui/app_list/search/search_controller.cc ('k') | ui/app_list/search_box_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698