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

Unified Diff: chrome/browser/ui/ash/app_list/app_list_presenter_service.cc

Issue 2898173006: restricts when context could be retrieved. (Closed)
Patch Set: fix meta layer shortcut key Created 3 years, 7 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/ash/app_list/app_list_presenter_service.cc
diff --git a/chrome/browser/ui/ash/app_list/app_list_presenter_service.cc b/chrome/browser/ui/ash/app_list/app_list_presenter_service.cc
index 25519373f0ea5baa197f0bc56c1c91451c031411..a45a5042baf70156f6b68a43788a74801ff81554 100644
--- a/chrome/browser/ui/ash/app_list/app_list_presenter_service.cc
+++ b/chrome/browser/ui/ash/app_list/app_list_presenter_service.cc
@@ -13,6 +13,7 @@
#include "content/public/common/service_manager_connection.h"
#include "services/service_manager/public/cpp/connector.h"
#include "ui/app_list/presenter/app_list_presenter_impl.h"
+#include "ui/gfx/geometry/rect.h"
AppListPresenterService::AppListPresenterService() : binding_(this) {
content::ServiceManagerConnection* connection =
@@ -44,11 +45,10 @@ void AppListPresenterService::ToggleAppList(int64_t display_id) {
}
void AppListPresenterService::StartVoiceInteractionSession() {
- arc::ArcVoiceInteractionFrameworkService* service =
- arc::ArcServiceManager::Get()
- ->GetService<arc::ArcVoiceInteractionFrameworkService>();
- if (service)
- service->StartVoiceInteractionSession();
+ auto* service = arc::ArcServiceManager::Get()
+ ->GetService<arc::ArcVoiceInteractionFrameworkService>();
+ DCHECK(service);
+ service->StartSessionFromUserInteraction(gfx::Rect());
}
app_list::AppListPresenterImpl* AppListPresenterService::GetPresenter() {

Powered by Google App Engine
This is Rietveld 408576698