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

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

Issue 665743003: Mojo JS Bindings: Simplify sharing services for content-provided JS applications (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« mojo/apps/js/mojo.js ('K') | « mojo/apps/js/standalone_main.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/js/bindings/connection.js
diff --git a/mojo/public/js/bindings/connection.js b/mojo/public/js/bindings/connection.js
index 7d92e8c76d9c126fd5278d4fcd3fd57d9674ecdf..4cfb0cde6e28ca3a8514b188043d4a2199c993bb 100644
--- a/mojo/public/js/bindings/connection.js
+++ b/mojo/public/js/bindings/connection.js
@@ -12,7 +12,7 @@ define("mojo/public/js/bindings/connection", [
if (routerFactory === undefined)
routerFactory = router.Router;
this.router_ = new routerFactory(handle, connectorFactory);
- this.remote = new remoteFactory(this.router_);
+ this.remote = remoteFactory && new remoteFactory(this.router_);
this.local = localFactory && new localFactory(this.remote);
this.router_.setIncomingReceiver(this.local);
« mojo/apps/js/mojo.js ('K') | « mojo/apps/js/standalone_main.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698