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

Unified Diff: content/renderer/categorized_worker_pool.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: content/renderer/categorized_worker_pool.cc
diff --git a/content/renderer/categorized_worker_pool.cc b/content/renderer/categorized_worker_pool.cc
index 5569e06ac2edc0a3a9e46951297a8763b898a477..9a272e72860776412c2d5dd72de7650fcfb15a8d 100644
--- a/content/renderer/categorized_worker_pool.cc
+++ b/content/renderer/categorized_worker_pool.cc
@@ -57,7 +57,7 @@ class CategorizedWorkerPool::CategorizedWorkerPoolSequencedTaskRunner
base::TimeDelta delay) override {
return PostNonNestableDelayedTask(from_here, std::move(task), delay);
}
- bool RunsTasksOnCurrentThread() const override { return true; }
+ bool RunsTasksInCurrentSequence() const override { return true; }
// Overridden from base::SequencedTaskRunner:
bool PostNonNestableDelayedTask(const tracked_objects::Location& from_here,
@@ -218,7 +218,7 @@ bool CategorizedWorkerPool::PostDelayedTask(
return true;
}
-bool CategorizedWorkerPool::RunsTasksOnCurrentThread() const {
+bool CategorizedWorkerPool::RunsTasksInCurrentSequence() const {
return true;
}

Powered by Google App Engine
This is Rietveld 408576698