| Index: third_party/WebKit/Source/core/html/track/TextTrackCueList.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/track/TextTrackCueList.cpp b/third_party/WebKit/Source/core/html/track/TextTrackCueList.cpp
|
| index 5ee268e923a880e4161985b7e8866177a2a751bd..fd3eaef9e2112741ca629b94ab126838e7ae5bad 100644
|
| --- a/third_party/WebKit/Source/core/html/track/TextTrackCueList.cpp
|
| +++ b/third_party/WebKit/Source/core/html/track/TextTrackCueList.cpp
|
| @@ -67,8 +67,8 @@
|
|
|
| bool TextTrackCueList::add(TextTrackCue* cue)
|
| {
|
| - DCHECK_GE(cue->startTime(), 0);
|
| - DCHECK_GE(cue->endTime(), 0);
|
| + ASSERT(cue->startTime() >= 0);
|
| + ASSERT(cue->endTime() >= 0);
|
|
|
| // Maintain text track cue order:
|
| // https://html.spec.whatwg.org/#text-track-cue-order
|
| @@ -95,7 +95,7 @@
|
| {
|
| auto it = std::upper_bound(m_list.begin(), m_list.end(), cueToInsert, cueIsBefore);
|
| size_t index = safeCast<size_t>(it - m_list.begin());
|
| - SECURITY_DCHECK(index <= m_list.size());
|
| + ASSERT_WITH_SECURITY_IMPLICATION(index <= m_list.size());
|
| return index;
|
| }
|
|
|
|
|