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

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

Issue 2043713004: Mojo: Add NotifyBadMessage API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 6 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/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 4f4185a515c39debcce02079cdeaa4407648a443..7600bfe8366a7f3be11088abc6f5da03b73cb671 100644
--- a/mojo/public/cpp/bindings/lib/binding_state.h
+++ b/mojo/public/cpp/bindings/lib/binding_state.h
@@ -57,6 +57,7 @@ class BindingState<Interface, false> {
new internal::Router(std::move(handle), std::move(filters),
Interface::HasSyncMethods_, std::move(runner));
router_->set_incoming_receiver(&stub_);
+ router_->set_interface_name(Interface::Name_);
router_->set_connection_error_handler(
[this]() { connection_error_handler_.Run(); });
}
@@ -155,6 +156,7 @@ class BindingState<Interface, true> {
endpoint_client_->set_connection_error_handler(
[this]() { connection_error_handler_.Run(); });
+ endpoint_client_->set_interface_name(Interface::Name_);
}
bool HasAssociatedInterfaces() const {

Powered by Google App Engine
This is Rietveld 408576698