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

Unified Diff: mojo/public/js/new_bindings/lib/interface_endpoint_client.js

Issue 2891193002: Mojo JS bindings: switch all mojo/ layout tests to use the new mode. (Closed)
Patch Set: . Created 3 years, 7 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/js/new_bindings/connector.js ('k') | mojo/public/js/new_bindings/router.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/js/new_bindings/lib/interface_endpoint_client.js
diff --git a/mojo/public/js/new_bindings/lib/interface_endpoint_client.js b/mojo/public/js/new_bindings/lib/interface_endpoint_client.js
index ef555298ba97f6f55d0622853e46d9447f09ca23..9b45b69b05e00f644f067ee036f79c25c090a115 100644
--- a/mojo/public/js/new_bindings/lib/interface_endpoint_client.js
+++ b/mojo/public/js/new_bindings/lib/interface_endpoint_client.js
@@ -47,8 +47,8 @@
this.initControllerIfNecessary_();
} else if (associationEvent ===
internal.AssociationEvent.PEER_CLOSED_BEFORE_ASSOCIATION) {
- timer.createOneShot(0, this.notifyError.bind(this,
- this.handle_.disconnectReason()));
+ setTimeout(this.notifyError.bind(this, this.handle_.disconnectReason()),
+ 0);
}
};
« no previous file with comments | « mojo/public/js/new_bindings/connector.js ('k') | mojo/public/js/new_bindings/router.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698