Index: mojo/apps/js/bindings/support.cc |
diff --git a/mojo/apps/js/bindings/support.cc b/mojo/apps/js/bindings/support.cc |
index 2e627bdeed1b80f572f9fc7e6244bb6b80d8d4ae..99076807aa541f75dcee51a1c23b7065fc873c53 100644 |
--- a/mojo/apps/js/bindings/support.cc |
+++ b/mojo/apps/js/bindings/support.cc |
@@ -54,12 +54,10 @@ v8::Local<v8::ObjectTemplate> Support::GetTemplate(v8::Isolate* isolate) { |
&g_wrapper_info); |
if (templ.IsEmpty()) { |
- WaitingCallback::EnsureRegistered(isolate); |
- |
- templ = gin::ObjectTemplateBuilder(isolate) |
- .SetMethod("asyncWait", AsyncWait) |
- .SetMethod("cancelWait", CancelWait) |
- .Build(); |
+ templ = gin::ObjectTemplateBuilder(isolate) |
+ .SetMethod("asyncWait", AsyncWait) |
+ .SetMethod("cancelWait", CancelWait) |
+ .Build(); |
data->SetObjectTemplate(&g_wrapper_info, templ); |
} |