Index: sky/viewer/internals.cc |
diff --git a/sky/viewer/internals.cc b/sky/viewer/internals.cc |
index 09db9802b52685d57f0c68d3a33f17e1bd969379..aca762a867a820e2aa4c07fd06de3aa8a4fc8010 100644 |
--- a/sky/viewer/internals.cc |
+++ b/sky/viewer/internals.cc |
@@ -99,10 +99,10 @@ mojo::Handle Internals::ConnectToEmbedderService( |
// owns the handle and is expected to use it to create the JS Application for |
// the DocumentView. |
mojo::Handle Internals::PassShellProxyHandle() { |
- mojo::MessagePipe pipe; |
- if (!shell_binding_.is_bound()) |
- shell_binding_.Bind(pipe.handle0.Pass()); |
- return pipe.handle1.release(); |
+ mojo::ShellPtr shell; |
+ if (!shell_binding_.is_bound()) |
+ shell_binding_.Bind(GetProxy(&shell)); |
+ return shell.PassMessagePipe().release(); |
} |
void Internals::ConnectToApplication( |