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

Unified Diff: components/scheduler/base/real_time_domain.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: 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/base/real_time_domain.cc
diff --git a/components/scheduler/base/real_time_domain.cc b/components/scheduler/base/real_time_domain.cc
index e9c1c7185ad5b68e3f6946e09d771c3c8e4ff671..d4fa4896ae683401f8e13e05e6a6b7c5b6afda3c 100644
--- a/components/scheduler/base/real_time_domain.cc
+++ b/components/scheduler/base/real_time_domain.cc
@@ -32,10 +32,8 @@ base::TimeTicks RealTimeDomain::Now() const {
return task_queue_manager_->delegate()->NowTicks();
}
-base::TimeTicks RealTimeDomain::ComputeDelayedRunTime(
- base::TimeTicks time_domain_now,
- base::TimeDelta delay) const {
- return time_domain_now + delay;
+base::TimeTicks RealTimeDomain::BlinkNow() const {
+ return task_queue_manager_->delegate()->NowTicks();
}
void RealTimeDomain::RequestWakeup(base::TimeTicks now, base::TimeDelta delay) {

Powered by Google App Engine
This is Rietveld 408576698