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

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

Issue 1441073006: Move throttling of background timers into the renderer 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/task_queue.cc
diff --git a/components/scheduler/base/task_queue.cc b/components/scheduler/base/task_queue.cc
index 857860557c80cd89c7c8946369cb162e425c34b6..0e823ff060f0bd384dd64452d6d92778cb7a8802 100644
--- a/components/scheduler/base/task_queue.cc
+++ b/components/scheduler/base/task_queue.cc
@@ -6,8 +6,8 @@
namespace scheduler {
-bool TaskQueue::IsQueueEmpty() const {
- return GetQueueState() == QueueState::EMPTY;
+bool TaskQueue::HasPendingImmediateTask() const {
+ return GetQueueState() != QueueState::EMPTY;
}
} // namespace scheduler

Powered by Google App Engine
This is Rietveld 408576698