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

Unified Diff: mojo/apps/js/main.js

Issue 686203004: Mojo JS Bindings: Simplify sharing services for content-provided JS applications (Closed) Base URL: https://github.com/domokit/mojo.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
Index: mojo/apps/js/main.js
diff --git a/mojo/apps/js/main.js b/mojo/apps/js/main.js
index 010146fa3de3ee1f009d5090a8b59740be6b8996..3f4f1ab50ff7a6fd54c22acec58f7876924277f1 100644
--- a/mojo/apps/js/main.js
+++ b/mojo/apps/js/main.js
@@ -25,7 +25,7 @@ define("test", [
"console"
], function(mojo, core, connection, support, net, loader, console) {
- var networkService = mojo.connectToService(
+ var networkService = mojo.shell().connectToService(
"mojo:network_service", net.NetworkService);
var urlLoaderPipe = core.createMessagePipe();

Powered by Google App Engine
This is Rietveld 408576698