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

Unified Diff: mojo/examples/browser/browser.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/examples/aura_demo/aura_demo.cc ('k') | mojo/examples/embedded_app/embedded_app.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/examples/browser/browser.cc
diff --git a/mojo/examples/browser/browser.cc b/mojo/examples/browser/browser.cc
index cef30628e44682834cda952fb112a017cf70432a..b1eae235118f31084d3523fb8d75574ab32f473a 100644
--- a/mojo/examples/browser/browser.cc
+++ b/mojo/examples/browser/browser.cc
@@ -155,7 +155,6 @@ class Browser : public ApplicationDelegate,
public:
Browser()
: view_manager_(NULL),
- view_manager_client_factory_(this),
root_(NULL),
widget_(NULL) {}
@@ -167,6 +166,8 @@ class Browser : public ApplicationDelegate,
private:
// Overridden from ApplicationDelegate:
virtual void Initialize(ApplicationImpl* app) MOJO_OVERRIDE {
+ view_manager_client_factory_.reset(
+ new ViewManagerClientFactory(app->shell(), this));
views_init_.reset(new ViewsInit);
app->ConnectToService("mojo:mojo_window_manager", &navigator_host_);
app->ConnectToService("mojo:mojo_window_manager", &window_manager_);
@@ -174,7 +175,7 @@ class Browser : public ApplicationDelegate,
virtual bool ConfigureIncomingConnection(ApplicationConnection* connection)
MOJO_OVERRIDE {
- connection->AddService(&view_manager_client_factory_);
+ connection->AddService(view_manager_client_factory_.get());
return true;
}
@@ -255,7 +256,7 @@ class Browser : public ApplicationDelegate,
scoped_ptr<ViewsInit> views_init_;
ViewManager* view_manager_;
- ViewManagerClientFactory view_manager_client_factory_;
+ scoped_ptr<ViewManagerClientFactory> view_manager_client_factory_;
View* root_;
views::Widget* widget_;
NavigatorHostPtr navigator_host_;
« no previous file with comments | « mojo/examples/aura_demo/aura_demo.cc ('k') | mojo/examples/embedded_app/embedded_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698