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

Unified Diff: ash/mus/app_list_presenter_mus.h

Issue 2567523002: mash: Have chrome set itself as the app list presenter. (Closed)
Patch Set: Build should work; thanks, Yuzhu! Created 4 years 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: ash/mus/app_list_presenter_mus.h
diff --git a/ash/mus/app_list_presenter_mus.h b/ash/mus/app_list_presenter_mus.h
index 2ed64ee8cc20e0aa7a466974c4104c1bf199e4d3..51275572f3f87543d0507ea96529abbf58b5a7c5 100644
--- a/ash/mus/app_list_presenter_mus.h
+++ b/ash/mus/app_list_presenter_mus.h
@@ -7,19 +7,14 @@
#include "base/macros.h"
#include "ui/app_list/presenter/app_list_presenter.h"
-#include "ui/app_list/presenter/app_list_presenter.mojom.h"
-
-namespace service_manager {
-class Connector;
-}
namespace ash {
// Mus+ash implementation of the AppListPresenter interface for mash, which
-// talks to the app list service in chrome.
+// talks to the app list presenter service in chrome.
class AppListPresenterMus : public app_list::AppListPresenter {
public:
- explicit AppListPresenterMus(service_manager::Connector* connector);
+ AppListPresenterMus();
~AppListPresenterMus() override;
// app_list::AppListPresenter:
@@ -30,13 +25,6 @@ class AppListPresenterMus : public app_list::AppListPresenter {
bool GetTargetVisibility() const override;
private:
- // Connect to the app list service in chrome if the connection hasn't
- // been established or has an error.
- void ConnectIfNeeded();
-
- service_manager::Connector* connector_;
- app_list::mojom::AppListPresenterPtr presenter_;
-
DISALLOW_COPY_AND_ASSIGN(AppListPresenterMus);
};

Powered by Google App Engine
This is Rietveld 408576698