diff --git a/atom/common/promise_util.h b/atom/common/promise_util.h index d36ba82daafb..3bdb71fb3f5f 100644 --- a/atom/common/promise_util.h +++ b/atom/common/promise_util.h @@ -47,7 +47,8 @@ class Promise : public base::RefCounted { return GetInner()->Reject(GetContext(), v8::Undefined(isolate())); } - v8::MaybeLocal Then(base::Closure cb) { + template + v8::MaybeLocal Then(base::Callback cb) { v8::HandleScope handle_scope(isolate()); v8::Context::Scope context_scope( v8::Local::New(isolate(), GetContext()));