Commit 3bf2a0e7 authored by Andreas Haas's avatar Andreas Haas Committed by Commit Bot

[cleanup][v8] Replace uses of deprecated API

R=haraken@chromium.org

Bug: v8:7295 v8:8015
Change-Id: Ie4d7a011d3c20c2997fc9ee309dcc2aa83174d1a
Reviewed-on: https://chromium-review.googlesource.com/1238158Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Andreas Haas <ahaas@chromium.org>
Cr-Commit-Position: refs/heads/master@{#593137}
parent c0ee2ba2
......@@ -74,13 +74,16 @@ void WebUIExtension::Install(blink::WebLocalFrame* frame) {
v8::Local<v8::Object> chrome = GetOrCreateChromeObject(isolate,
context->Global());
chrome->Set(gin::StringToSymbol(isolate, "send"),
gin::CreateFunctionTemplate(
isolate, base::Bind(&WebUIExtension::Send))->GetFunction());
chrome->Set(
gin::StringToSymbol(isolate, "send"),
gin::CreateFunctionTemplate(isolate, base::Bind(&WebUIExtension::Send))
->GetFunction(context)
.ToLocalChecked());
chrome->Set(gin::StringToSymbol(isolate, "getVariableValue"),
gin::CreateFunctionTemplate(
isolate, base::Bind(&WebUIExtension::GetVariableValue))
->GetFunction());
->GetFunction(context)
.ToLocalChecked());
}
// 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