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

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

Issue 2823103003: Introduce TaskRunner::RunsTasksInCurrentSequence() (Closed)
Patch Set: rebase 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/idle_helper.cc
diff --git a/third_party/WebKit/Source/platform/scheduler/child/idle_helper.cc b/third_party/WebKit/Source/platform/scheduler/child/idle_helper.cc
index 615f8d7984da1718c31c7c34bbddb519c98a9323..0ce84fae25ed66dcbba5b419fcc111498026b648 100644
--- a/third_party/WebKit/Source/platform/scheduler/child/idle_helper.cc
+++ b/third_party/WebKit/Source/platform/scheduler/child/idle_helper.cc
@@ -288,7 +288,7 @@ void IdleHelper::OnIdleTaskPosted() {
"OnIdleTaskPosted");
if (is_shutdown_)
return;
- if (idle_task_runner_->RunsTasksOnCurrentThread()) {
+ if (idle_task_runner_->RunsTasksInCurrentSequence()) {
OnIdleTaskPostedOnMainThread();
} else {
helper_->ControlTaskQueue()->PostTask(

Powered by Google App Engine
This is Rietveld 408576698