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

Unified Diff: content/child/scheduler/scheduler_helper.cc

Issue 1033643004: Add a WorkerScheduler and a WebThreadImplForWorker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bug where tasks posted to a worker thread did not always run when the thread was shutdown Created 5 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: content/child/scheduler/scheduler_helper.cc
diff --git a/content/child/scheduler/scheduler_helper.cc b/content/child/scheduler/scheduler_helper.cc
index 77fb9fbbf964e6433b52dab536a0130964665e38..16b4432b1754535491c17898702b59bd4e754711 100644
--- a/content/child/scheduler/scheduler_helper.cc
+++ b/content/child/scheduler/scheduler_helper.cc
@@ -190,6 +190,7 @@ void SchedulerHelper::EnableLongIdlePeriod() {
control_task_runner_->PostDelayedTask(
FROM_HERE, enable_next_long_idle_period_closure_.callback(),
required_quiescence_duration_before_long_idle_period_);
+ scheduler_helper_delegate_->IsNotQuiescent();
return;
}

Powered by Google App Engine
This is Rietveld 408576698