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

Unified Diff: components/scheduler/child/idle_helper.cc

Issue 2155143002: Fix a bug that could occasionaly cause setInterval to stop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changed ThrottledTimeDomain to be based on RealTimeDomain Created 4 years, 5 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: components/scheduler/child/idle_helper.cc
diff --git a/components/scheduler/child/idle_helper.cc b/components/scheduler/child/idle_helper.cc
index 9d2db911be8584414a71a8671ccef82fe6ed6a95..0f6c82f6ac862f60b84045be223a6dbcbdc8a80b 100644
--- a/components/scheduler/child/idle_helper.cc
+++ b/components/scheduler/child/idle_helper.cc
@@ -176,7 +176,8 @@ void IdleHelper::StartIdlePeriod(IdlePeriodState new_state,
TRACE_EVENT0(disabled_by_default_tracing_category_, "StartIdlePeriod");
idle_queue_->SetQueueEnabled(true);
- idle_queue_->PumpQueue(true);
+ LazyNow lazy_now(now);
+ idle_queue_->PumpQueue(&lazy_now, true);
state_.UpdateState(new_state, idle_period_deadline, now);
}

Powered by Google App Engine
This is Rietveld 408576698