Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(524)

Unified Diff: mojo/public/bindings/js/support.cc

Issue 94483002: Remove usage of deprecated V8 APIs from mojo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/public/bindings/js/core.cc ('k') | mojo/public/bindings/js/waiting_callback.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/bindings/js/support.cc
diff --git a/mojo/public/bindings/js/support.cc b/mojo/public/bindings/js/support.cc
index 1290e87c4275488a7eec12420b048e5a59fbd273..7430bfce810b1fbca178487b8bd913c659f8da7e 100644
--- a/mojo/public/bindings/js/support.cc
+++ b/mojo/public/bindings/js/support.cc
@@ -64,10 +64,10 @@ v8::Local<v8::ObjectTemplate> Support::GetTemplate(v8::Isolate* isolate) {
if (templ.IsEmpty()) {
WaitingCallback::EnsureRegistered(isolate);
- templ = v8::ObjectTemplate::New();
+ templ = v8::ObjectTemplate::New(isolate);
templ->Set(gin::StringToSymbol(isolate, "asyncWait"),
- v8::FunctionTemplate::New(AsyncWait));
+ v8::FunctionTemplate::New(isolate, AsyncWait));
templ->Set(gin::StringToSymbol(isolate, "cancelWait"),
gin::CreateFunctionTemplate(isolate, base::Bind(CancelWait)));
« no previous file with comments | « mojo/public/bindings/js/core.cc ('k') | mojo/public/bindings/js/waiting_callback.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698