Commit 2141bfe2 authored by Hajime Hoshi's avatar Hajime Hoshi Committed by Commit Bot

Add DCHECK to check event target existence at EventQueue

This check was in MediaElementEventQueue but lost when merging this into
EventQueueImpl.

Bug: 846618
Change-Id: I354ab7a4787624c6269e6abd0a67eb0a63680ad6
Reviewed-on: https://chromium-review.googlesource.com/1113397Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Hajime Hoshi <hajimehoshi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#570016}
parent 20458b5f
......@@ -57,6 +57,7 @@ bool EventQueue::EnqueueEvent(const base::Location& from_here, Event* event) {
if (is_closed_)
return false;
DCHECK(event->target());
DCHECK(GetExecutionContext());
probe::AsyncTaskScheduled(GetExecutionContext(), event->type(), event);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment