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

Unified Diff: base/message_loop/incoming_task_queue.cc

Issue 2785943004: DCHECK tasks posted by TaskRunner::PostTask (Closed)
Patch Set: fix Created 3 years, 8 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 | « base/deferred_sequenced_task_runner.cc ('k') | base/task_scheduler/delayed_task_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/message_loop/incoming_task_queue.cc
diff --git a/base/message_loop/incoming_task_queue.cc b/base/message_loop/incoming_task_queue.cc
index f0df650adc49f1a506a0fc03ee58cb987f51d64c..f838713899c3ec2d22618742e91b463eef6d22a3 100644
--- a/base/message_loop/incoming_task_queue.cc
+++ b/base/message_loop/incoming_task_queue.cc
@@ -63,6 +63,7 @@ bool IncomingTaskQueue::AddToIncomingQueue(
Closure task,
TimeDelta delay,
bool nestable) {
+ DCHECK(task);
DLOG_IF(WARNING,
delay.InSeconds() > kTaskDelayWarningThresholdInSeconds)
<< "Requesting super-long task delay period of " << delay.InSeconds()
« no previous file with comments | « base/deferred_sequenced_task_runner.cc ('k') | base/task_scheduler/delayed_task_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698