summaryrefslogtreecommitdiffstats
path: root/content/renderer/web_ui_mojo.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/renderer/web_ui_mojo.cc')
-rw-r--r--content/renderer/web_ui_mojo.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/content/renderer/web_ui_mojo.cc b/content/renderer/web_ui_mojo.cc
index 04712e2..21d85da 100644
--- a/content/renderer/web_ui_mojo.cc
+++ b/content/renderer/web_ui_mojo.cc
@@ -48,14 +48,14 @@ WebUIMojo::WebUIMojo(RenderView* render_view)
CreateContextState();
}
-WebUIMojo::~WebUIMojo() {
-}
-
-void WebUIMojo::OnSetBrowserHandle(MojoHandle handle) {
+void WebUIMojo::SetBrowserHandle(mojo::ScopedMessagePipeHandle handle) {
v8::HandleScope handle_scope(blink::mainThreadIsolate());
WebUIMojoContextState* state = GetContextState();
if (state)
- state->SetHandle(mojo::MakeScopedHandle(mojo::Handle(handle)));
+ state->SetHandle(handle.Pass());
+}
+
+WebUIMojo::~WebUIMojo() {
}
void WebUIMojo::CreateContextState() {