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

Unified Diff: chrome/browser/ui/app_list/search/search_controller.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
Index: chrome/browser/ui/app_list/search/search_controller.cc
diff --git a/chrome/browser/ui/app_list/search/search_controller.cc b/chrome/browser/ui/app_list/search/search_controller.cc
index 927847721f07b86111e10382d02c156aaf5b22b1..3efcc1e9f9fdfaa5d7d91311b5c6e8392fed107b 100644
--- a/chrome/browser/ui/app_list/search/search_controller.cc
+++ b/chrome/browser/ui/app_list/search/search_controller.cc
@@ -61,10 +61,13 @@ void SearchController::Init() {
StartPageService* service = StartPageService::Get(profile_);
if (service && service->GetSpeechRecognitionContents()) {
search_box_->SetSpeechRecognitionButton(
- scoped_ptr<SearchBoxModel::ButtonProperty>(
- new SearchBoxModel::ButtonProperty(
+ scoped_ptr<SearchBoxModel::SpeechButtonProperty>(
+ new SearchBoxModel::SpeechButtonProperty(
*bundle.GetImageSkiaNamed(IDR_OMNIBOX_MIC_SEARCH),
l10n_util::GetStringUTF16(
+ IDS_APP_LIST_HOTWORD_LISTENING),
+ *bundle.GetImageSkiaNamed(IDR_APP_LIST_MIC_HOTWORD_OFF),
+ l10n_util::GetStringUTF16(
IDS_APP_LIST_START_SPEECH_RECOGNITION))));
}
« no previous file with comments | « chrome/browser/ui/app_list/app_list_view_delegate.cc ('k') | chrome/browser/ui/webui/app_list/start_page_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698