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

Unified Diff: mojo/services/window_manager/window_manager_app.cc

Issue 514063003: Update view_manager and window_manager to make use of content handling. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@viewman2
Patch Set: git cl format Created 6 years, 3 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 | « mojo/services/window_manager/window_manager_app.h ('k') | mojo/shell/context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/window_manager/window_manager_app.cc
diff --git a/mojo/services/window_manager/window_manager_app.cc b/mojo/services/window_manager/window_manager_app.cc
index dd3fbdb9afddc25e6c706d9c72a592140ea29a5e..b6fe7efa3cb5ba5ed04d81e6637e8b413dfef896 100644
--- a/mojo/services/window_manager/window_manager_app.cc
+++ b/mojo/services/window_manager/window_manager_app.cc
@@ -8,6 +8,7 @@
#include "base/stl_util.h"
#include "mojo/aura/aura_init.h"
#include "mojo/public/cpp/application/application_connection.h"
+#include "mojo/public/cpp/application/application_impl.h"
#include "mojo/services/public/cpp/input_events/input_events_type_converters.h"
#include "mojo/services/public/cpp/view_manager/view.h"
#include "mojo/services/public/cpp/view_manager/view_manager.h"
@@ -119,7 +120,6 @@ WindowManagerApp::WindowManagerApp(
wrapped_view_manager_delegate_(view_manager_delegate),
wrapped_window_manager_delegate_(window_manager_delegate),
view_manager_(NULL),
- view_manager_client_factory_(this),
root_(NULL),
dummy_delegate_(new DummyDelegate) {
}
@@ -168,12 +168,14 @@ bool WindowManagerApp::IsReady() const {
void WindowManagerApp::Initialize(ApplicationImpl* impl) {
aura_init_.reset(new AuraInit);
+ view_manager_client_factory_.reset(
+ new ViewManagerClientFactory(impl->shell(), this));
}
bool WindowManagerApp::ConfigureIncomingConnection(
ApplicationConnection* connection) {
connection->AddService(&window_manager_service_factory_);
- connection->AddService(&view_manager_client_factory_);
+ connection->AddService(view_manager_client_factory_.get());
return true;
}
« no previous file with comments | « mojo/services/window_manager/window_manager_app.h ('k') | mojo/shell/context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698