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

Unified Diff: sky/framework/shell.sky

Issue 803173009: Mojo JS Bindings: Eliminate foo$ Stub and Proxy class members (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: sync 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 | « services/js/test/pingpong.js ('k') | no next file » | 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 008552d8553601ba3b00deb8c39dc2a732170cf4..ca554c829e77e39809174daace2bd7b13eb5dc4a 100644
--- a/sky/framework/shell.sky
+++ b/sky/framework/shell.sky
@@ -2,13 +2,7 @@
<import src="/mojo/public/sky/connection.sky" as="connection" />
<script>
function wrapHandle(handle, service, client) {
- var clientClass = client && service.client.delegatingStubClass;
- var serviceConnection = new connection.Connection(
- handle, clientClass, service.proxyClass);
- if (serviceConnection.local)
- serviceConnection.local.delegate$ = client;
- serviceConnection.remote.connection$ = serviceConnection;
- return serviceConnection.remote;
+ return connection.bindProxyHandle(handle, service.client, service);
}
function connectToService(url, service, client) {
« no previous file with comments | « services/js/test/pingpong.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698