Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1051)

Unified Diff: base/task_scheduler/scheduler_single_thread_task_runner_manager.cc

Issue 2823103003: Introduce TaskRunner::RunsTasksInCurrentSequence() (Closed)
Patch Set: fixed build error and commments Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 d4c26d6a404e04110ed0c38b35dbe7d798024208..9e42e06b2f27153e04aee32b5d40d135dbc0a7bd 100644
--- a/base/task_scheduler/scheduler_single_thread_task_runner_manager.cc
+++ b/base/task_scheduler/scheduler_single_thread_task_runner_manager.cc
@@ -95,7 +95,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();
@@ -278,8 +278,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:

Powered by Google App Engine
This is Rietveld 408576698