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

Unified Diff: third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc

Issue 2785943004: DCHECK tasks posted by TaskRunner::PostTask (Closed)
Patch Set: win build fix Created 3 years, 9 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
« no previous file with comments | « content/renderer/categorized_worker_pool.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc
diff --git a/third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc b/third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc
index b2546fc574d45fd0ff580e57d6bc6fc6c4015f9b..7ee64d740f77713b9bb1b9484387d0698358c4c0 100644
--- a/third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc
+++ b/third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc
@@ -274,6 +274,8 @@ bool TaskQueueImpl::PostDelayedTaskImpl(
void TaskQueueImpl::PushOntoDelayedIncomingQueueFromMainThread(
Task pending_task, base::TimeTicks now) {
+ CHECK(pending_task.task);
+
base::TimeTicks delayed_run_time = pending_task.delayed_run_time;
main_thread_only().task_queue_manager->DidQueueTask(pending_task);
main_thread_only().delayed_incoming_queue.push(std::move(pending_task));
@@ -293,6 +295,8 @@ void TaskQueueImpl::PushOntoDelayedIncomingQueueFromMainThread(
}
void TaskQueueImpl::PushOntoDelayedIncomingQueueLocked(Task pending_task) {
+ CHECK(pending_task.task);
+
any_thread().task_queue_manager->DidQueueTask(pending_task);
int thread_hop_task_sequence_number =
@@ -333,6 +337,8 @@ void TaskQueueImpl::PushOntoImmediateIncomingQueueLocked(
base::TimeTicks desired_run_time,
EnqueueOrder sequence_number,
bool nestable) {
+ CHECK(task);
+
// If the |immediate_incoming_queue| is empty we need a DoWork posted to make
// it run.
if (any_thread().immediate_incoming_queue.empty()) {
« no previous file with comments | « content/renderer/categorized_worker_pool.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698