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

Unified Diff: components/scheduler/base/virtual_time_domain.cc

Issue 1441073006: Move throttling of background timers into the renderer scheduler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed various dchecks Created 5 years, 1 month 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/base/virtual_time_domain.cc
diff --git a/components/scheduler/base/virtual_time_domain.cc b/components/scheduler/base/virtual_time_domain.cc
index 32510394fda1f744ccc79657b91210757fecb1e4..b3d263239128c7a397025d7ea1a4897d9455192d 100644
--- a/components/scheduler/base/virtual_time_domain.cc
+++ b/components/scheduler/base/virtual_time_domain.cc
@@ -44,6 +44,10 @@ void VirtualTimeDomain::AdvanceTo(base::TimeTicks now) {
base::AutoLock lock(lock_);
DCHECK_GE(now, now_);
now_ = now;
+ DCHECK(task_queue_manager_delegate_);
+
+ LazyNow lazy_now(now_);
+ WakeupReadyDelayedQueues(&lazy_now);
Sami 2015/11/24 12:48:48 Isn't the DoWork going to do this? Why do it twice
alex clarke (OOO till 29th) 2015/11/25 12:29:36 Seems it isn't needed. It definitely was at one s
task_queue_manager_delegate_->PostTask(FROM_HERE, do_work_closure_);
}

Powered by Google App Engine
This is Rietveld 408576698