chore: convert base::Bind instances across some files (#18112)

This commit is contained in:
Shelley Vohr 2019-05-02 16:49:27 -07:00 committed by Cheng Zhao
parent 4808f30538
commit cc00fa8874
7 changed files with 34 additions and 30 deletions

View file

@ -10,6 +10,7 @@
#include "atom/common/api/locker.h"
#include "atom/common/native_mate_converters/callback.h"
#include "atom/common/native_mate_converters/once_callback.h"
#include "base/task/post_task.h"
#include "content/public/browser/browser_task_traits.h"
#include "content/public/browser/browser_thread.h"
@ -104,7 +105,8 @@ class Promise {
}
template <typename ReturnType, typename... ArgTypes>
v8::MaybeLocal<v8::Promise> Then(base::Callback<ReturnType(ArgTypes...)> cb) {
v8::MaybeLocal<v8::Promise> Then(
base::OnceCallback<ReturnType(ArgTypes...)> cb) {
v8::HandleScope handle_scope(isolate());
v8::Context::Scope context_scope(
v8::Local<v8::Context>::New(isolate(), GetContext()));