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

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: ClearExpiredWakeups tweak. 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
« no previous file with comments | « components/scheduler/base/real_time_domain.h ('k') | components/scheduler/base/task_queue.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..a452b978e9179cdec412463837625846cc7dbbdf 100644
--- a/components/scheduler/base/real_time_domain.cc
+++ b/components/scheduler/base/real_time_domain.cc
@@ -16,6 +16,12 @@ RealTimeDomain::RealTimeDomain(const char* tracing_category)
tracing_category_(tracing_category),
task_queue_manager_(nullptr) {}
+RealTimeDomain::RealTimeDomain(TimeDomain::Observer* observer,
+ const char* tracing_category)
+ : TimeDomain(observer),
+ tracing_category_(tracing_category),
+ task_queue_manager_(nullptr) {}
+
RealTimeDomain::~RealTimeDomain() {}
void RealTimeDomain::OnRegisterWithTaskQueueManager(
@@ -32,12 +38,6 @@ 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;
-}
-
void RealTimeDomain::RequestWakeup(base::TimeTicks now, base::TimeDelta delay) {
// NOTE this is only called if the scheduled runtime is sooner than any
// previously scheduled runtime, or there is no (outstanding) previously
« no previous file with comments | « components/scheduler/base/real_time_domain.h ('k') | components/scheduler/base/task_queue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698