Commit 0ee408a3 authored by anujk.sharma's avatar anujk.sharma Committed by Commit bot

v8::Handle<T> is just an alias of v8::Local<T> so, replacing v8::Handle with...

v8::Handle<T> is just an alias of v8::Local<T> so, replacing v8::Handle with v8::Local in src/components

BUG=424445

Review URL: https://codereview.chromium.org/693883002

Cr-Commit-Position: refs/heads/master@{#302263}
parent afd4d54f
...@@ -110,11 +110,11 @@ void MobileYouTubePlugin::OpenYoutubeUrlCallback() { ...@@ -110,11 +110,11 @@ void MobileYouTubePlugin::OpenYoutubeUrlCallback() {
void MobileYouTubePlugin::BindWebFrame(WebFrame* frame) { void MobileYouTubePlugin::BindWebFrame(WebFrame* frame) {
v8::Isolate* isolate = blink::mainThreadIsolate(); v8::Isolate* isolate = blink::mainThreadIsolate();
v8::HandleScope handle_scope(isolate); v8::HandleScope handle_scope(isolate);
v8::Handle<v8::Context> context = frame->mainWorldScriptContext(); v8::Local<v8::Context> context = frame->mainWorldScriptContext();
DCHECK(!context.IsEmpty()); DCHECK(!context.IsEmpty());
v8::Context::Scope context_scope(context); v8::Context::Scope context_scope(context);
v8::Handle<v8::Object> global = context->Global(); v8::Local<v8::Object> global = context->Global();
global->Set(gin::StringToV8(isolate, "plugin"), global->Set(gin::StringToV8(isolate, "plugin"),
gin::CreateHandle(isolate, this).ToV8()); gin::CreateHandle(isolate, this).ToV8());
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment