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

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

Issue 1424053002: Adds a flag to support "Virtual Time" to the blink scheduler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added a test Created 5 years, 2 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/lazy_now.cc
diff --git a/components/scheduler/base/lazy_now.cc b/components/scheduler/base/lazy_now.cc
index 411e51b56f49f1a013ba592efcfda651bba8b2e5..469fa4c90e3ff8c41b80372575cb3a355f3ad188 100644
--- a/components/scheduler/base/lazy_now.cc
+++ b/components/scheduler/base/lazy_now.cc
@@ -11,7 +11,7 @@ namespace internal {
base::TimeTicks LazyNow::Now() {
if (now_.is_null())
- now_ = task_queue_manager_->Now();
+ now_ = tick_clock_->NowTicks();
return now_;
}

Powered by Google App Engine
This is Rietveld 408576698