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

Unified Diff: third_party/WebKit/Source/platform/scheduler/child/single_thread_idle_task_runner.cc

Issue 2823103003: Introduce TaskRunner::RunsTasksInCurrentSequence() (Closed)
Patch Set: rebase & remove inline keyword Created 3 years, 7 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: third_party/WebKit/Source/platform/scheduler/child/single_thread_idle_task_runner.cc
diff --git a/third_party/WebKit/Source/platform/scheduler/child/single_thread_idle_task_runner.cc b/third_party/WebKit/Source/platform/scheduler/child/single_thread_idle_task_runner.cc
index 93cb75b1413292d57ed5fb0898f58d4ee0a1c022..b7021a41000e73de3c1e3ed36d8f28f86b38a069 100644
--- a/third_party/WebKit/Source/platform/scheduler/child/single_thread_idle_task_runner.cc
+++ b/third_party/WebKit/Source/platform/scheduler/child/single_thread_idle_task_runner.cc
@@ -19,7 +19,7 @@ SingleThreadIdleTaskRunner::SingleThreadIdleTaskRunner(
blame_context_(nullptr),
weak_factory_(this) {
DCHECK(!idle_priority_task_runner_ ||
- idle_priority_task_runner_->RunsTasksOnCurrentThread());
+ idle_priority_task_runner_->RunsTasksInCurrentSequence());
weak_scheduler_ptr_ = weak_factory_.GetWeakPtr();
}
@@ -29,8 +29,8 @@ SingleThreadIdleTaskRunner::Delegate::Delegate() {}
SingleThreadIdleTaskRunner::Delegate::~Delegate() {}
-bool SingleThreadIdleTaskRunner::RunsTasksOnCurrentThread() const {
- return idle_priority_task_runner_->RunsTasksOnCurrentThread();
+bool SingleThreadIdleTaskRunner::RunsTasksInCurrentSequence() const {
+ return idle_priority_task_runner_->RunsTasksInCurrentSequence();
}
void SingleThreadIdleTaskRunner::PostIdleTask(

Powered by Google App Engine
This is Rietveld 408576698