Index: mojo/public/cpp/bindings/lib/binding_state.h |
diff --git a/mojo/public/cpp/bindings/lib/binding_state.h b/mojo/public/cpp/bindings/lib/binding_state.h |
index d6f4711ef4f0f9c05cee20687cd5f152cf31c291..1c00ab4ba9c7ea193f357724932cb59fec9b6edb 100644 |
--- a/mojo/public/cpp/bindings/lib/binding_state.h |
+++ b/mojo/public/cpp/bindings/lib/binding_state.h |
@@ -139,6 +139,8 @@ class BindingState<Interface, true> { |
DCHECK(!router_); |
router_ = new internal::MultiplexRouter(false, handle.Pass(), waiter); |
+ stub_.serialization_context()->router = router_; |
+ |
endpoint_client_.reset(new internal::InterfaceEndpointClient( |
router_->CreateLocalEndpointHandle(internal::kMasterInterfaceId), |
&stub_, make_scoped_ptr(new typename Interface::RequestValidator_()))); |