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

Unified Diff: sky/framework/shell.sky

Issue 875713003: Upgrade Sky's use of the JS bindings (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 | « sky/framework/embedder.sky ('k') | sky/framework/xmlhttprequest.sky » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/framework/shell.sky
diff --git a/sky/framework/shell.sky b/sky/framework/shell.sky
index b23b470d4fef303b378250f8ef51eba9e05a980b..1e6c8690fe7f4b18f073110337c50bde6bc598a5 100644
--- a/sky/framework/shell.sky
+++ b/sky/framework/shell.sky
@@ -1,17 +1,11 @@
-<import src="/gen/mojo/public/sky/core.sky" as="core" />
<import src="/gen/mojo/public/sky/connection.sky" as="connection" />
<script>
-function wrapHandle(handle, service, client) {
- return connection.bindProxyHandle(handle, service.client, service);
-}
-
function connectToService(url, service, client) {
var handle = internals.connectToService(url, service.name);
- return wrapHandle(handle, service, client);
+ return connection.bindHandleToProxy(handle, service);
}
module.exports = {
connectToService: connectToService,
- wrapHandle: wrapHandle,
};
</script>
« no previous file with comments | « sky/framework/embedder.sky ('k') | sky/framework/xmlhttprequest.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698