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

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

Issue 2576913002: Use mojo app list interfaces for mash and classic ash. (Closed)
Patch Set: Sync and rebase Created 3 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/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 2770d89a23bdc18b8ffbdbbc405e1c2f54fd386c..aed941a3562e6512fbf7e466cece7909adf963ef 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
@@ -8,7 +8,7 @@
#include "chrome/browser/ui/ash/ash_util.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.h"
+#include "ui/app_list/presenter/app_list_presenter_impl.h"
AppListPresenterService::AppListPresenterService() : binding_(this) {
content::ServiceManagerConnection* connection =
@@ -20,6 +20,8 @@ AppListPresenterService::AppListPresenterService() : binding_(this) {
ash_util::GetAshServiceName(), &app_list_ptr);
// Register this object as the app list presenter.
app_list_ptr->SetAppListPresenter(binding_.CreateInterfacePtrAndBind());
+ // Pass the interface pointer to the presenter to report visibility changes.
+ GetPresenter()->SetAppList(std::move(app_list_ptr));
}
}
@@ -37,6 +39,6 @@ void AppListPresenterService::ToggleAppList(int64_t display_id) {
GetPresenter()->ToggleAppList(display_id);
}
-app_list::AppListPresenter* AppListPresenterService::GetPresenter() {
+app_list::AppListPresenterImpl* AppListPresenterService::GetPresenter() {
return AppListServiceAsh::GetInstance()->GetAppListPresenter();
}
« no previous file with comments | « chrome/browser/ui/ash/app_list/app_list_presenter_service.h ('k') | chrome/browser/ui/ash/app_list/app_list_service_ash.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698