From c54e1688e89351410876ba6e063fce98c5691250 Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Thu, 19 Feb 2015 21:16:04 -0800 Subject: [PATCH] Sky should expose services provided to/by embedder These now appear on internals as takeServicesProvidedToEmbedder and takeServicesProvidedByEmbedder. When you call these functions, you get back the raw int that represents the handle. We'll need to wrap them up inside the Dart VM with the appropriate types. We can create a nice wrapper for that in a future CL. R=hansmuller@google.com, hansmuller@chromium.org Review URL: https://codereview.chromium.org/944733002 --- examples/dart-mojo.sky | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/dart-mojo.sky b/examples/dart-mojo.sky index c540292739..cee9de92d1 100644 --- a/examples/dart-mojo.sky +++ b/examples/dart-mojo.sky @@ -74,7 +74,7 @@ main() { var messagePipe = new MojoMessagePipe(); var wget = new WGet(messagePipe.endpoints[1]); wget.listen(); - var shellProxy = new shell_mojom.ShellProxy.fromHandle(new MojoHandle(internals.passShellProxyHandle())); + var shellProxy = new shell_mojom.ShellProxy.fromHandle(new MojoHandle(internals.takeShellProxyHandle())); wget.initializeFromShellProxy(shellProxy, ["mojo:wget", "http://www.google.com"], "mojo:wget"); }