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

Unified Diff: cc/test/ordered_simple_task_runner.cc

Issue 2483843002: Revert of [scheduler] Teach scheduler about audio state (Closed)
Patch Set: Rebase Created 4 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
« no previous file with comments | « no previous file | content/browser/media/audio_stream_monitor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/ordered_simple_task_runner.cc
diff --git a/cc/test/ordered_simple_task_runner.cc b/cc/test/ordered_simple_task_runner.cc
index 9dc4bbcd2dacb680d586699576a632e286aab037..a3d66ee6d3a58510e49557842b0498955f17fc83 100644
--- a/cc/test/ordered_simple_task_runner.cc
+++ b/cc/test/ordered_simple_task_runner.cc
@@ -247,11 +247,9 @@ bool OrderedSimpleTaskRunner::RunUntilTime(base::TimeTicks time) {
// Run tasks
bool result = RunTasksWhile(NowBefore(time));
- bool has_reached_task_limit = HasPendingTasks() && NextTaskTime() <= time;
-
// If the next task is after the stopping time and auto-advancing now, then
// force time to be the stopping time.
- if (!has_reached_task_limit && advance_now_ && now_src_->NowTicks() < time) {
+ if (!result && advance_now_ && now_src_->NowTicks() < time) {
now_src_->Advance(time - now_src_->NowTicks());
}
« no previous file with comments | « no previous file | content/browser/media/audio_stream_monitor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698