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

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

Issue 1411843008: Make blink platform time consistent with the timer virtual time (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix CachingCorrectnessTest 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/child/scheduler_tqm_delegate_impl.cc
diff --git a/components/scheduler/child/scheduler_tqm_delegate_impl.cc b/components/scheduler/child/scheduler_tqm_delegate_impl.cc
index 8057d7e96ed439916cd5af074d02800aabc23b75..dbf2c4243a39be2602a68bfe7fccbc3d11f628f7 100644
--- a/components/scheduler/child/scheduler_tqm_delegate_impl.cc
+++ b/components/scheduler/child/scheduler_tqm_delegate_impl.cc
@@ -62,6 +62,10 @@ base::TimeTicks SchedulerTqmDelegateImpl::NowTicks() {
return time_source_->NowTicks();
}
+double SchedulerTqmDelegateImpl::CurrentTimeSeconds() const {
+ return base::Time::Now().ToDoubleT();
+}
+
void SchedulerTqmDelegateImpl::OnNoMoreImmediateWork() {}
} // namespace scheduler
« no previous file with comments | « components/scheduler/child/scheduler_tqm_delegate_impl.h ('k') | components/scheduler/child/virtual_time_tqm_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698