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

Unified Diff: mash/shelf/shelf_model.cc

Issue 1674903003: Extract shell methods from ApplicationImpl into a base class, and pass this to Initialize() instead. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojom
Patch Set: . Created 4 years, 10 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
« no previous file with comments | « mash/shelf/shelf_model.h ('k') | mash/shelf/shelf_tooltip_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/shelf/shelf_model.cc
diff --git a/mash/shelf/shelf_model.cc b/mash/shelf/shelf_model.cc
index 9ca37e2bb88568d6f257e7a904b73d327c25b40a..9e7e59370acd3f3893b28719bab49fd9c7e04739 100644
--- a/mash/shelf/shelf_model.cc
+++ b/mash/shelf/shelf_model.cc
@@ -8,7 +8,7 @@
#include "mash/shelf/shelf_model_observer.h"
#include "mojo/common/common_type_converters.h"
-#include "mojo/shell/public/cpp/application_impl.h"
+#include "mojo/shell/public/cpp/shell.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/resources/grit/ui_resources.h"
@@ -49,9 +49,9 @@ bool CompareByWeight(const ShelfItem& a, const ShelfItem& b) {
} // namespace
-ShelfModel::ShelfModel(mojo::ApplicationImpl* app)
+ShelfModel::ShelfModel(mojo::Shell* shell)
: next_id_(1), status_(STATUS_NORMAL), binding_(this) {
- app->ConnectToService("mojo:desktop_wm", &user_window_controller_);
+ shell->ConnectToService("mojo:desktop_wm", &user_window_controller_);
user_window_controller_->AddUserWindowObserver(
binding_.CreateInterfacePtrAndBind());
}
« no previous file with comments | « mash/shelf/shelf_model.h ('k') | mash/shelf/shelf_tooltip_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698