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

Unified Diff: mojo/public/cpp/bindings/associated_binding.h

Issue 1475813002: Mojo C++ bindings: support passing associated interface pointers/requests in method parameter lists… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@25_use_multiplex_router
Patch Set: Created 5 years, 1 month 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 | « no previous file | mojo/public/cpp/bindings/lib/array_serialization.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/bindings/associated_binding.h
diff --git a/mojo/public/cpp/bindings/associated_binding.h b/mojo/public/cpp/bindings/associated_binding.h
index bd6b203b8c8bcd56b6daf519cd2f8737b71ed23b..b6b7cd1098cf55bf19dea7a2ca4fd4648f217443 100644
--- a/mojo/public/cpp/bindings/associated_binding.h
+++ b/mojo/public/cpp/bindings/associated_binding.h
@@ -79,9 +79,10 @@ class AssociatedBinding {
endpoint_client_.reset(new internal::InterfaceEndpointClient(
handle.Pass(), &stub_,
make_scoped_ptr(new typename Interface::RequestValidator_())));
-
endpoint_client_->set_connection_error_handler(
[this]() { connection_error_handler_.Run(); });
+
+ stub_.serialization_context()->router = endpoint_client_->router();
}
// Closes the associated interface. Puts this object into a state where it can
« no previous file with comments | « no previous file | mojo/public/cpp/bindings/lib/array_serialization.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698