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

Unified Diff: third_party/WebKit/Source/platform/scheduler/child/idle_helper.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/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(

Powered by Google App Engine
This is Rietveld 408576698