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

Unified Diff: components/scheduler/base/task_queue.h

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: Changed ThrottledTimeDomain to be based on RealTimeDomain 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/task_queue.h
diff --git a/components/scheduler/base/task_queue.h b/components/scheduler/base/task_queue.h
index b9c24de79255aa7634093a4e682484590bbe3af0..b3a316362ce53eba8682ec097f64c7c5fe5283f5 100644
--- a/components/scheduler/base/task_queue.h
+++ b/components/scheduler/base/task_queue.h
@@ -18,6 +18,7 @@ class BlameContext;
}
namespace scheduler {
+class LazyNow;
class TimeDomain;
class SCHEDULER_EXPORT TaskQueue : public base::SingleThreadTaskRunner {
@@ -182,7 +183,7 @@ class SCHEDULER_EXPORT TaskQueue : public base::SingleThreadTaskRunner {
// TaskQueueManager::MaybeScheduleImmediateWork.
// TODO(alexclarke): Add a base::RunLoop observer so we can get rid of
// |may_post_dowork|.
- virtual void PumpQueue(bool may_post_dowork) = 0;
+ virtual void PumpQueue(LazyNow* lazy_now, bool may_post_dowork) = 0;
// These functions can only be called on the same thread that the task queue
// manager executes its tasks on.

Powered by Google App Engine
This is Rietveld 408576698