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 8877bd468cc0a38f62f24f31c06a48289620a662..f0758bae6e5793818902f518ec407e5c2d5a4072 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 |
@@ -219,6 +219,7 @@ bool TaskQueueImpl::PostImmediateTaskImpl( |
const tracked_objects::Location& from_here, |
base::Closure task, |
TaskType task_type) { |
+ DCHECK(task); |
base::AutoLock lock(any_thread_lock_); |
if (!any_thread().task_queue_manager) |
return false; |
@@ -237,6 +238,7 @@ bool TaskQueueImpl::PostDelayedTaskImpl( |
base::Closure task, |
base::TimeDelta delay, |
TaskType task_type) { |
+ DCHECK(task); |
DCHECK_GT(delay, base::TimeDelta()); |
if (base::PlatformThread::CurrentId() == thread_id_) { |
// Lock-free fast path for delayed tasks posted from the main thread. |