Introduce TaskRunner::RunsTasksInCurrentSequence()
https://codereview.chromium.org/2823103003
This commit is contained in:
parent
f2bcdab037
commit
11fa935359
9 changed files with 26 additions and 26 deletions
|
@ -35,12 +35,12 @@ bool BridgeTaskRunner::PostDelayedTask(
|
|||
from_here, std::move(task), delay);
|
||||
}
|
||||
|
||||
bool BridgeTaskRunner::RunsTasksOnCurrentThread() const {
|
||||
bool BridgeTaskRunner::RunsTasksInCurrentSequence() const {
|
||||
auto message_loop = base::MessageLoop::current();
|
||||
if (!message_loop)
|
||||
return true;
|
||||
|
||||
return message_loop->task_runner()->RunsTasksOnCurrentThread();
|
||||
return message_loop->task_runner()->RunsTasksInCurrentSequence();
|
||||
}
|
||||
|
||||
bool BridgeTaskRunner::PostNonNestableDelayedTask(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue