Completion callback is called on IO thread
This commit is contained in:
parent
78171e2072
commit
d0ef43bd12
1 changed files with 3 additions and 1 deletions
|
@ -41,7 +41,9 @@ void HandlerCallback(v8::Isolate* isolate,
|
||||||
CHECK(holder);
|
CHECK(holder);
|
||||||
v8::Local<v8::Value> value;
|
v8::Local<v8::Value> value;
|
||||||
if (!args->GetNext(&value)) {
|
if (!args->GetNext(&value)) {
|
||||||
holder->callback.Run(false, nullptr);
|
content::BrowserThread::PostTask(
|
||||||
|
content::BrowserThread::IO, FROM_HERE,
|
||||||
|
base::Bind(holder->callback, false, nullptr));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue