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

Unified Diff: sky/viewer/document_view.cc

Issue 845593003: Pass ServiceProvider and ServiceProvider& params in Connect (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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: sky/viewer/document_view.cc
diff --git a/sky/viewer/document_view.cc b/sky/viewer/document_view.cc
index b8a9a22ac3ec6691e291856180f42a357b268a7a..303fbf40147a437cd02294ba6f23796589702eda 100644
--- a/sky/viewer/document_view.cc
+++ b/sky/viewer/document_view.cc
@@ -72,7 +72,8 @@ mojo::Target WebNavigationPolicyToNavigationTarget(
static int s_next_debugger_id = 1;
DocumentView::DocumentView(
- mojo::ServiceProviderPtr provider,
+ mojo::InterfaceRequest<mojo::ServiceProvider> services,
+ mojo::ServiceProviderPtr exported_services,
mojo::URLResponsePtr response,
mojo::Shell* shell)
: response_(response.Pass()),
@@ -83,8 +84,9 @@ DocumentView::DocumentView(
inspector_service_factory_(this),
weak_factory_(this),
debugger_id_(s_next_debugger_id++) {
+ // TODO(jamesr): Is this right?
exported_services_.AddService(&view_manager_client_factory_);
- mojo::WeakBindToPipe(&exported_services_, provider.PassMessagePipe());
+ mojo::WeakBindToPipe(&exported_services_, services.PassMessagePipe());
}
DocumentView::~DocumentView() {

Powered by Google App Engine
This is Rietveld 408576698