Index: base/task_scheduler/scheduler_single_thread_task_runner_manager.cc |
diff --git a/base/task_scheduler/scheduler_single_thread_task_runner_manager.cc b/base/task_scheduler/scheduler_single_thread_task_runner_manager.cc |
index b39c95ab6ae3ea6dad4a66a819a8d7431677ed44..3a8900b27fddcb7ab5ce9b015bad69aadad2b510 100644 |
--- a/base/task_scheduler/scheduler_single_thread_task_runner_manager.cc |
+++ b/base/task_scheduler/scheduler_single_thread_task_runner_manager.cc |
@@ -96,7 +96,7 @@ class SchedulerWorkerDelegate : public SchedulerWorker::Delegate { |
void OnDetach() override { NOTREACHED(); } |
- bool RunsTasksOnCurrentThread() { |
+ bool RunsTasksInCurrentSequence() { |
// We check the thread ref instead of the sequence for the benefit of COM |
// callbacks which may execute without a sequence context. |
return thread_ref_checker_.IsCurrentThreadSameAsSetThread(); |
@@ -279,8 +279,8 @@ class SchedulerSingleThreadTaskRunnerManager::SchedulerSingleThreadTaskRunner |
return PostDelayedTask(from_here, std::move(closure), delay); |
} |
- bool RunsTasksOnCurrentThread() const override { |
- return GetDelegate()->RunsTasksOnCurrentThread(); |
+ bool RunsTasksInCurrentSequence() const override { |
+ return GetDelegate()->RunsTasksInCurrentSequence(); |
} |
private: |