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

Unified Diff: mojo/services/public/cpp/view_manager/lib/view_manager_client_factory.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
Index: mojo/services/public/cpp/view_manager/lib/view_manager_client_factory.cc
diff --git a/mojo/services/public/cpp/view_manager/lib/view_manager_client_factory.cc b/mojo/services/public/cpp/view_manager/lib/view_manager_client_factory.cc
index 791d1222e009b94dc42056c499aa0271c06e665b..8b8ada1b89b92b6e1e265b55e1db9460b788ad9b 100644
--- a/mojo/services/public/cpp/view_manager/lib/view_manager_client_factory.cc
+++ b/mojo/services/public/cpp/view_manager/lib/view_manager_client_factory.cc
@@ -4,13 +4,15 @@
#include "mojo/services/public/cpp/view_manager/view_manager_client_factory.h"
+#include "mojo/public/interfaces/application/shell.mojom.h"
#include "mojo/services/public/cpp/view_manager/lib/view_manager_client_impl.h"
namespace mojo {
ViewManagerClientFactory::ViewManagerClientFactory(
+ Shell* shell,
ViewManagerDelegate* delegate)
- : delegate_(delegate) {
+ : shell_(shell), delegate_(delegate) {
}
ViewManagerClientFactory::~ViewManagerClientFactory() {
@@ -20,7 +22,7 @@ ViewManagerClientFactory::~ViewManagerClientFactory() {
void ViewManagerClientFactory::Create(
ApplicationConnection* connection,
InterfaceRequest<ViewManagerClient> request) {
- BindToRequest(new ViewManagerClientImpl(delegate_, connection), &request);
+ BindToRequest(new ViewManagerClientImpl(delegate_, shell_), &request);
}
} // namespace mojo
« no previous file with comments | « mojo/services/html_viewer/html_viewer.cc ('k') | mojo/services/public/cpp/view_manager/lib/view_manager_client_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698