Commit 8e85f058 authored by Dale Curtis's avatar Dale Curtis Committed by Commit Bot

Crash if more than 1024 media events are generated in a second.

These should be low frequency, otherwise there's a bug.

R=tmathmeyer

Bug: 1141985
Change-Id: Ibfc915e7f2a4d524da33100dd43fff10b463376e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2496023
Auto-Submit: Dale Curtis <dalecurtis@chromium.org>
Commit-Queue: Ted Meyer <tmathmeyer@chromium.org>
Reviewed-by: default avatarTed Meyer <tmathmeyer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#822364}
parent 0ac878c6
......@@ -131,6 +131,10 @@ void BatchingMediaLog::AddLogRecordLocked(
queued_media_events_.push_back(*event);
}
// TODO(crbug.com/1141985): This shouldn't exceed 1024 events within a
// single second. Crash to help us track down what's going wrong.
CHECK_LE(queued_media_events_.size(), 1024u);
if (ipc_send_pending_)
return;
......
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