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

Unified Diff: components/scheduler/base/task_queue_impl.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_impl.h
diff --git a/components/scheduler/base/task_queue_impl.h b/components/scheduler/base/task_queue_impl.h
index 3508c623abfe9f3e6c8154bca6be2f260245ce8e..327cbd278b0f4d086ac590ee6c2f82a29176c7b3 100644
--- a/components/scheduler/base/task_queue_impl.h
+++ b/components/scheduler/base/task_queue_impl.h
@@ -98,7 +98,7 @@ class SCHEDULER_EXPORT TaskQueueImpl final : public TaskQueue {
bool NeedsPumping() const override;
void SetQueuePriority(QueuePriority priority) override;
QueuePriority GetQueuePriority() const override;
- void PumpQueue(bool may_post_dowork) override;
+ void PumpQueue(LazyNow* lazy_now, bool may_post_dowork) override;
void SetPumpPolicy(PumpPolicy pump_policy) override;
PumpPolicy GetPumpPolicy() const override;
void AddTaskObserver(base::MessageLoop::TaskObserver* task_observer) override;
@@ -236,7 +236,7 @@ class SCHEDULER_EXPORT TaskQueueImpl final : public TaskQueue {
void MoveReadyImmediateTasksToImmediateWorkQueueLocked();
// Note this does nothing if its not called from the main thread.
- void PumpQueueLocked(bool may_post_dowork);
+ void PumpQueueLocked(LazyNow* lazy_now, bool may_post_dowork);
// Returns true if |task| is older than the oldest incoming immediate task.
// NOTE |any_thread_lock_| must be locked.

Powered by Google App Engine
This is Rietveld 408576698