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

Unified Diff: mojo/examples/media_viewer/media_viewer.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/keyboard/keyboard.cc ('k') | mojo/examples/nesting_app/nesting_app.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/examples/media_viewer/media_viewer.cc
diff --git a/mojo/examples/media_viewer/media_viewer.cc b/mojo/examples/media_viewer/media_viewer.cc
index 74fb2b7344c8fe4d7c42f516e4bff9c0ee4299c6..2ba8a21712ca6ac2611b07a574426d8e603fc651 100644
--- a/mojo/examples/media_viewer/media_viewer.cc
+++ b/mojo/examples/media_viewer/media_viewer.cc
@@ -211,7 +211,6 @@ class MediaViewer
public:
MediaViewer()
: navigator_factory_(this),
- view_manager_client_factory_(this),
app_(NULL),
view_manager_(NULL),
root_view_(NULL),
@@ -271,6 +270,8 @@ class MediaViewer
// Overridden from ApplicationDelegate:
virtual void Initialize(ApplicationImpl* app) OVERRIDE {
+ view_manager_client_factory_.reset(
+ new ViewManagerClientFactory(app->shell(), this));
app_ = app;
views_init_.reset(new ViewsInit);
}
@@ -278,7 +279,7 @@ class MediaViewer
virtual bool ConfigureIncomingConnection(ApplicationConnection* connection)
OVERRIDE {
connection->AddService(&navigator_factory_);
- connection->AddService(&view_manager_client_factory_);
+ connection->AddService(view_manager_client_factory_.get());
return true;
}
@@ -361,7 +362,7 @@ class MediaViewer
InterfaceFactoryImplWithContext<NavigatorImpl, MediaViewer>
navigator_factory_;
- ViewManagerClientFactory view_manager_client_factory_;
+ scoped_ptr<ViewManagerClientFactory> view_manager_client_factory_;
ApplicationImpl* app_;
scoped_ptr<ViewsInit> views_init_;
« no previous file with comments | « mojo/examples/keyboard/keyboard.cc ('k') | mojo/examples/nesting_app/nesting_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698