Index: content/renderer/web_ui_mojo_context_state.cc |
diff --git a/content/renderer/web_ui_mojo_context_state.cc b/content/renderer/web_ui_mojo_context_state.cc |
index 18c61fae18c2a59ed46b764fc7dd20204673ba68..f1ff5f4896a058ee2ec87a868a4467211387fcf6 100644 |
--- a/content/renderer/web_ui_mojo_context_state.cc |
+++ b/content/renderer/web_ui_mojo_context_state.cc |
@@ -14,6 +14,7 @@ |
#include "gin/public/context_holder.h" |
#include "gin/try_catch.h" |
#include "mojo/bindings/js/core.h" |
+#include "mojo/bindings/js/handle.h" |
#include "mojo/bindings/js/support.h" |
#include "third_party/WebKit/public/platform/WebURLResponse.h" |
#include "third_party/WebKit/public/web/WebFrame.h" |
@@ -41,7 +42,7 @@ void RunMain(base::WeakPtr<gin::Runner> runner, |
v8::Handle<v8::Function> start; |
CHECK(gin::ConvertFromV8(isolate, module, &start)); |
v8::Handle<v8::Value> args[] = { |
- gin::ConvertToV8(isolate, handle->release().value()) }; |
+ gin::ConvertToV8(isolate, mojo::Handle(handle->release().value())) }; |
runner->Call(start, runner->global(), 1, args); |
} |