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 46eac1be5ace5030f6e5e9a5f98d357a977d431a..f58c4d9a63d1f4fa0ae5d44077fa482ffa36af0e 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() { |
TRACE_EVENT0(disabled_by_default_tracing_category_, "OnIdleTaskPosted"); |
if (is_shutdown_) |
return; |
- if (idle_task_runner_->RunsTasksOnCurrentThread()) { |
+ if (idle_task_runner_->RunsTasksInCurrentSequence()) { |
OnIdleTaskPostedOnMainThread(); |
} else { |
helper_->ControlTaskRunner()->PostTask( |