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

Unified Diff: third_party/WebKit/Source/platform/scheduler/child/single_thread_idle_task_runner.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: 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 2ffc75b130d3f254269f93028a262d816d6e0f65..c4366889241c2af7b5a316d40ba0c262963e0009 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
@@ -21,7 +21,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();
}
@@ -31,8 +31,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