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

Unified Diff: base/threading/worker_pool.cc

Issue 2823103003: Introduce TaskRunner::RunsTasksInCurrentSequence() (Closed)
Patch Set: remove RunsTasksOnCurrentThread() overrided. 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/threading/worker_pool.cc
diff --git a/base/threading/worker_pool.cc b/base/threading/worker_pool.cc
index 26ff10f1f538fe820ad0d3a7fb0fbb9484a2f54d..085e582c08d27d9d356445ffba69e31115251e5c 100644
--- a/base/threading/worker_pool.cc
+++ b/base/threading/worker_pool.cc
@@ -47,7 +47,7 @@ class WorkerPoolTaskRunner : public TaskRunner {
bool PostDelayedTask(const tracked_objects::Location& from_here,
OnceClosure task,
TimeDelta delay) override;
- bool RunsTasksOnCurrentThread() const override;
+ bool RunsTasksInCurrentSequence() const override;
private:
~WorkerPoolTaskRunner() override;
@@ -78,8 +78,8 @@ bool WorkerPoolTaskRunner::PostDelayedTask(
return PostDelayedTaskAssertZeroDelay(from_here, std::move(task), delay);
}
-bool WorkerPoolTaskRunner::RunsTasksOnCurrentThread() const {
- return WorkerPool::RunsTasksOnCurrentThread();
+bool WorkerPoolTaskRunner::RunsTasksInCurrentSequence() const {
+ return WorkerPool::RunsTasksInCurrentSequence();
}
bool WorkerPoolTaskRunner::PostDelayedTaskAssertZeroDelay(

Powered by Google App Engine
This is Rietveld 408576698