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

Unified Diff: ui/app_list/views/app_list_view.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 | « ui/app_list/test/app_list_test_view_delegate.cc ('k') | ui/app_list/views/search_box_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/app_list_view.cc
diff --git a/ui/app_list/views/app_list_view.cc b/ui/app_list/views/app_list_view.cc
index a74a100ac34eb1ad92b1d44a09eec4d1061fd86a..0721c01fdf330fdd3aee4116e97007d19383b22d 100644
--- a/ui/app_list/views/app_list_view.cc
+++ b/ui/app_list/views/app_list_view.cc
@@ -442,7 +442,8 @@ void AppListView::OnSpeechRecognitionStateChanged(
SpeechRecognitionState new_state) {
DCHECK(!signin_view_->visible());
- bool recognizing = new_state != SPEECH_RECOGNITION_NOT_STARTED;
+ bool recognizing = (new_state == SPEECH_RECOGNITION_RECOGNIZING ||
+ new_state == SPEECH_RECOGNITION_IN_SPEECH);
// No change for this class.
if (speech_view_->visible() == recognizing)
return;
« no previous file with comments | « ui/app_list/test/app_list_test_view_delegate.cc ('k') | ui/app_list/views/search_box_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698