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

Unified Diff: mojo/public/cpp/bindings/lib/binding_state.h

Issue 2492463005: Mojo C++ bindings: reduce references to AssociatedGroupController. (Closed)
Patch Set: . Created 4 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
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 1842509288c24d6fcd40f0b44a47fe1dc53cf325..a947cf73c57c9d13b7a80370b33983e8c197863c 100644
--- a/mojo/public/cpp/bindings/lib/binding_state.h
+++ b/mojo/public/cpp/bindings/lib/binding_state.h
@@ -216,7 +216,8 @@ class BindingState<Interface, true, ImplRefTraits>
base::MakeUnique<typename Interface::RequestValidator_>(),
Interface::PassesAssociatedKinds_, Interface::HasSyncMethods_, &stub_,
Interface::Version_);
- stub_.serialization_context()->group_controller = router_;
+ if (Interface::PassesAssociatedKinds_)
+ stub_.serialization_context()->group_controller = router_;
}
InterfaceRequest<Interface> Unbind() {
« no previous file with comments | « mojo/public/cpp/bindings/lib/associated_interface_ptr_state.h ('k') | mojo/public/cpp/bindings/lib/interface_ptr_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698