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

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: Rebased 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/lazy_now.cc
diff --git a/components/scheduler/base/lazy_now.cc b/components/scheduler/base/lazy_now.cc
index 411e51b56f49f1a013ba592efcfda651bba8b2e5..c80dd472440daed23fc2b274cb11fc0859398edf 100644
--- a/components/scheduler/base/lazy_now.cc
+++ b/components/scheduler/base/lazy_now.cc
@@ -4,6 +4,7 @@
#include "components/scheduler/base/lazy_now.h"
+#include "base/time/tick_clock.h"
#include "components/scheduler/base/task_queue_manager.h"
namespace scheduler {
@@ -11,7 +12,7 @@ namespace internal {
base::TimeTicks LazyNow::Now() {
if (now_.is_null())
- now_ = task_queue_manager_->Now();
+ now_ = tick_clock_->NowTicks();
return now_;
}
« no previous file with comments | « components/scheduler/base/lazy_now.h ('k') | components/scheduler/base/nestable_single_thread_task_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698