| Index: base/test/test_simple_task_runner.cc
|
| diff --git a/base/test/test_simple_task_runner.cc b/base/test/test_simple_task_runner.cc
|
| index 4280a0de62502a059fec11a315a2cafdb46cbf6d..bdb4aacb2856a7a4b9d79f9f6390a057ba590096 100644
|
| --- a/base/test/test_simple_task_runner.cc
|
| +++ b/base/test/test_simple_task_runner.cc
|
| @@ -41,7 +41,7 @@ bool TestSimpleTaskRunner::PostNonNestableDelayedTask(
|
| // TODO(gab): Use SequenceToken here to differentiate between tasks running in
|
| // the scope of this TestSimpleTaskRunner and other task runners sharing this
|
| // thread. http://crbug.com/631186
|
| -bool TestSimpleTaskRunner::RunsTasksOnCurrentThread() const {
|
| +bool TestSimpleTaskRunner::RunsTasksInCurrentSequence() const {
|
| return thread_ref_ == PlatformThread::CurrentRef();
|
| }
|
|
|
| @@ -76,7 +76,7 @@ void TestSimpleTaskRunner::ClearPendingTasks() {
|
| }
|
|
|
| void TestSimpleTaskRunner::RunPendingTasks() {
|
| - DCHECK(RunsTasksOnCurrentThread());
|
| + DCHECK(RunsTasksInCurrentSequence());
|
|
|
| // Swap with a local variable to avoid re-entrancy problems.
|
| std::deque<TestPendingTask> tasks_to_run;
|
|
|