Chromium Code Reviews| Index: third_party/WebKit/Source/core/html/track/AutomaticTrackSelection.cpp |
| diff --git a/third_party/WebKit/Source/core/html/track/AutomaticTrackSelection.cpp b/third_party/WebKit/Source/core/html/track/AutomaticTrackSelection.cpp |
| index 4026fdb757964095844978a582ec141c339e44b0..a036de198e71282fb54aedc58aee86207932349f 100644 |
| --- a/third_party/WebKit/Source/core/html/track/AutomaticTrackSelection.cpp |
| +++ b/third_party/WebKit/Source/core/html/track/AutomaticTrackSelection.cpp |
| @@ -72,7 +72,7 @@ const AtomicString& AutomaticTrackSelection::preferredTrackKind() const |
| void AutomaticTrackSelection::performAutomaticTextTrackSelection(const TrackGroup& group) |
| { |
| - ASSERT(group.tracks.size()); |
| + DCHECK(group.tracks.size()); |
| // First, find the track in the group that should be enabled (if any). |
| HeapVector<Member<TextTrack>> currentlyEnabledTracks; |
| @@ -142,7 +142,7 @@ void AutomaticTrackSelection::performAutomaticTextTrackSelection(const TrackGrou |
| void AutomaticTrackSelection::enableDefaultMetadataTextTracks(const TrackGroup& group) |
| { |
| - ASSERT(group.tracks.size()); |
| + DCHECK(group.tracks.size()); |
| // https://html.spec.whatwg.org/multipage/embedded-content.html#honor-user-preferences-for-automatic-text-track-selection |
| @@ -180,7 +180,7 @@ void AutomaticTrackSelection::perform(TextTrackList& textTracks) |
| } else if (kind == TextTrack::chaptersKeyword()) { |
| currentGroup = &chapterTracks; |
| } else { |
| - ASSERT(kind == TextTrack::metadataKeyword()); |
| + DCHECK(kind == TextTrack::metadataKeyword()); |
|
fs
2016/05/20 13:01:07
DCHECK_EQ?
Srirama
2016/05/20 14:15:40
Done.
|
| currentGroup = &metadataTracks; |
| } |