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

Unified Diff: mojo/public/js/bindings/router.js

Issue 468713002: JavaScript bindings for Mojo message validation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Binding generator simplification for Arrays Created 6 years, 4 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/js/bindings/router.js
diff --git a/mojo/public/js/bindings/router.js b/mojo/public/js/bindings/router.js
index a00fc0a05a0e7ddb041d69d71fc3fe65edd05f3c..648ecd455816f9549070470fe982248b9b8d7731 100644
--- a/mojo/public/js/bindings/router.js
+++ b/mojo/public/js/bindings/router.js
@@ -62,7 +62,7 @@ define("mojo/public/js/bindings/router", [
Router.prototype.handleIncomingMessage_ = function(message) {
var v = new validator.Validator(message);
- if (v.validateMessage() !== validator.validationError.NONE)
+ if (v.validateMessageHeader() !== validator.validationError.NONE)
this.close();
if (message.expectsResponse()) {

Powered by Google App Engine
This is Rietveld 408576698