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

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

Issue 2064903002: Mojo: Report bindings validation errors via MojoNotifyBadMessage (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
« no previous file with comments | « mojo/public/cpp/bindings/lib/array_internal.h ('k') | mojo/public/cpp/bindings/lib/bounds_checker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..93030878122404431f2bcfafa635bd986d6d59b6 100644
--- a/mojo/public/cpp/bindings/lib/binding_state.h
+++ b/mojo/public/cpp/bindings/lib/binding_state.h
@@ -50,7 +50,7 @@ class BindingState<Interface, false> {
scoped_refptr<base::SingleThreadTaskRunner> runner) {
DCHECK(!router_);
internal::FilterChain filters;
- filters.Append<internal::MessageHeaderValidator>();
+ filters.Append<internal::MessageHeaderValidator>(Interface::Name_);
filters.Append<typename Interface::RequestValidator_>();
router_ =
@@ -146,6 +146,7 @@ class BindingState<Interface, true> {
DCHECK(!router_);
router_ = new internal::MultiplexRouter(false, std::move(handle), runner);
+ router_->SetMasterInterfaceName(Interface::Name_);
stub_.serialization_context()->router = router_;
endpoint_client_.reset(new internal::InterfaceEndpointClient(
« no previous file with comments | « mojo/public/cpp/bindings/lib/array_internal.h ('k') | mojo/public/cpp/bindings/lib/bounds_checker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698