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

Unified Diff: chrome/browser/ui/app_list/app_list_service_impl.cc

Issue 631913004: Open the launcher when hotword is triggered in always-on mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@hotword-google-com-ntp
Patch Set: Created 6 years, 2 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/app_list_service_impl.cc
diff --git a/chrome/browser/ui/app_list/app_list_service_impl.cc b/chrome/browser/ui/app_list/app_list_service_impl.cc
index 00dcad6f41ccf880103917ee757504fc4f149d46..71bf177cd54b5dd6da8b8941d361671957c63c0c 100644
--- a/chrome/browser/ui/app_list/app_list_service_impl.cc
+++ b/chrome/browser/ui/app_list/app_list_service_impl.cc
@@ -330,6 +330,13 @@ void AppListServiceImpl::Show() {
weak_factory_.GetWeakPtr()));
}
+void AppListServiceImpl::ShowForVoiceSearch(Profile* profile) {
+ ShowForProfile(profile);
+ app_list::AppListViewDelegate* delegate =
+ implicit_cast<app_list::AppListViewDelegate*>(view_delegate_.get());
tapted 2014/10/09 03:37:00 you shouldn't need the implicit cast after a rebas
Anand Mistry (off Chromium) 2014/10/13 21:51:59 Done.
+ delegate->ToggleSpeechRecognition();
+}
+
void AppListServiceImpl::AutoShowForProfile(Profile* requested_profile) {
if (local_state_->GetInt64(prefs::kAppListEnableTime) != 0) {
// User has not yet discovered the app launcher. Update the enable method to

Powered by Google App Engine
This is Rietveld 408576698