Index: base/test/scoped_task_scheduler.cc |
diff --git a/base/test/scoped_task_scheduler.cc b/base/test/scoped_task_scheduler.cc |
index ba19f628f3f882f1bfb74850c4d6a39c585ccc1c..0b9a1987fc4a896e48bd4e90b626cb7b5e537594 100644 |
--- a/base/test/scoped_task_scheduler.cc |
+++ b/base/test/scoped_task_scheduler.cc |
@@ -82,7 +82,7 @@ class TestTaskScheduler : public TaskScheduler { |
const SequenceToken& sequence_token); |
// Returns true if this TaskScheduler runs its tasks on the current thread. |
- bool RunsTasksOnCurrentThread() const; |
+ bool RunsTasksInCurrentSequence() const; |
private: |
// Returns the TaskRunner to which this TaskScheduler forwards tasks. It may |
@@ -143,7 +143,7 @@ class TestTaskSchedulerTaskRunner : public SingleThreadTaskRunner { |
bool PostNonNestableDelayedTask(const tracked_objects::Location& from_here, |
OnceClosure closure, |
TimeDelta delay) override; |
- bool RunsTasksOnCurrentThread() const override; |
+ bool RunsTasksInCurrentSequence() const override; |
private: |
~TestTaskSchedulerTaskRunner() override; |
@@ -272,8 +272,8 @@ void TestTaskScheduler::RunTask(std::unique_ptr<internal::Task> task, |
saved_task_runner_ = nullptr; |
} |
-bool TestTaskScheduler::RunsTasksOnCurrentThread() const { |
- return MessageLoopTaskRunner()->RunsTasksOnCurrentThread(); |
+bool TestTaskScheduler::RunsTasksInCurrentSequence() const { |
+ return MessageLoopTaskRunner()->RunsTasksInCurrentSequence(); |
} |
TestTaskSchedulerTaskRunner::TestTaskSchedulerTaskRunner( |
@@ -308,9 +308,9 @@ bool TestTaskSchedulerTaskRunner::PostNonNestableDelayedTask( |
return PostDelayedTask(from_here, std::move(closure), delay); |
} |
-bool TestTaskSchedulerTaskRunner::RunsTasksOnCurrentThread() const { |
+bool TestTaskSchedulerTaskRunner::RunsTasksInCurrentSequence() const { |
if (execution_mode_ == ExecutionMode::PARALLEL) |
- return task_scheduler_->RunsTasksOnCurrentThread(); |
+ return task_scheduler_->RunsTasksInCurrentSequence(); |
return sequence_token_ == SequenceToken::GetForCurrentThread(); |
} |