Chromium Code Reviews| 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 |