Commit 47c167cb authored by Simon Zünd's avatar Simon Zünd Committed by Commit Bot

Remove use of deprecated 'Set' method

Bug: v8:7283, v8:8015
Change-Id: I21d6e81d273fb6f321788a6f3e7122d7d63dbf28
Reviewed-on: https://chromium-review.googlesource.com/1238434Reviewed-by: default avatarKristi Park <kristipark@chromium.org>
Commit-Queue: Simon Zünd <szuend@google.com>
Cr-Commit-Position: refs/heads/master@{#593435}
parent d985bd37
...@@ -1031,11 +1031,18 @@ void SearchBoxExtension::Install(blink::WebLocalFrame* frame) { ...@@ -1031,11 +1031,18 @@ void SearchBoxExtension::Install(blink::WebLocalFrame* frame) {
v8::Handle<v8::Object> chrome = v8::Handle<v8::Object> chrome =
content::GetOrCreateChromeObject(isolate, context->Global()); content::GetOrCreateChromeObject(isolate, context->Global());
v8::Local<v8::Object> embedded_search = v8::Object::New(isolate); v8::Local<v8::Object> embedded_search = v8::Object::New(isolate);
embedded_search->Set(gin::StringToV8(isolate, "searchBox"), embedded_search
searchbox_controller.ToV8()); ->Set(context, gin::StringToV8(isolate, "searchBox"),
embedded_search->Set(gin::StringToV8(isolate, "newTabPage"), searchbox_controller.ToV8())
newtabpage_controller.ToV8()); .ToChecked();
chrome->Set(gin::StringToSymbol(isolate, "embeddedSearch"), embedded_search); embedded_search
->Set(context, gin::StringToV8(isolate, "newTabPage"),
newtabpage_controller.ToV8())
.ToChecked();
chrome
->Set(context, gin::StringToSymbol(isolate, "embeddedSearch"),
embedded_search)
.ToChecked();
} }
// static // static
......
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