Index: trunk/src/content/renderer/web_ui_mojo.cc |
=================================================================== |
--- trunk/src/content/renderer/web_ui_mojo.cc (revision 258768) |
+++ trunk/src/content/renderer/web_ui_mojo.cc (working copy) |
@@ -48,16 +48,16 @@ |
CreateContextState(); |
} |
-void WebUIMojo::SetBrowserHandle(mojo::ScopedMessagePipeHandle handle) { |
+WebUIMojo::~WebUIMojo() { |
+} |
+ |
+void WebUIMojo::OnSetBrowserHandle(MojoHandle handle) { |
v8::HandleScope handle_scope(blink::mainThreadIsolate()); |
WebUIMojoContextState* state = GetContextState(); |
if (state) |
- state->SetHandle(handle.Pass()); |
+ state->SetHandle(mojo::MakeScopedHandle(mojo::Handle(handle))); |
} |
-WebUIMojo::~WebUIMojo() { |
-} |
- |
void WebUIMojo::CreateContextState() { |
v8::HandleScope handle_scope(blink::mainThreadIsolate()); |
blink::WebFrame* frame = render_view()->GetWebView()->mainFrame(); |