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 3b863cf3859bcc9259dcc7409eb1d49c669005e4..d4882022bc7a898c521e7829515c9e08724fb60f 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 |
@@ -7,14 +7,14 @@ |
#include <utility> |
#include "ash/public/interfaces/constants.mojom.h" |
+#include "chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.h" |
#include "chrome/browser/ui/ash/app_list/app_list_service_ash.h" |
-#include "components/arc/arc_bridge_service.h" |
#include "components/arc/arc_service_manager.h" |
-#include "components/arc/common/voice_interaction_framework.mojom.h" |
#include "components/arc/instance_holder.h" |
#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 = |
@@ -46,13 +46,10 @@ void AppListPresenterService::ToggleAppList(int64_t display_id) { |
} |
void AppListPresenterService::StartVoiceInteractionSession() { |
- arc::mojom::VoiceInteractionFrameworkInstance* framework_instance = |
- ARC_GET_INSTANCE_FOR_METHOD(arc::ArcServiceManager::Get() |
- ->arc_bridge_service() |
- ->voice_interaction_framework(), |
- StartVoiceInteractionSession); |
- if (framework_instance) |
- framework_instance->StartVoiceInteractionSession(); |
+ auto* service = arc::ArcServiceManager::Get() |
+ ->GetService<arc::ArcVoiceInteractionFrameworkService>(); |
+ DCHECK(service); |
+ service->StartSessionFromUserInteraction(gfx::Rect()); |
} |
app_list::AppListPresenterImpl* AppListPresenterService::GetPresenter() { |