Introduce TaskRunner::RunsTasksInCurrentSequence()

https://codereview.chromium.org/2823103003
This commit is contained in:
Aleksei Kuzmin 2017-08-08 00:14:35 +03:00 committed by Cheng Zhao
parent f2bcdab037
commit 11fa935359
9 changed files with 26 additions and 26 deletions

View file

@ -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(