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..15a7acff62ee757c721dc4c491b8281f06593345 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_EQ(kind, TextTrack::metadataKeyword()); |
currentGroup = &metadataTracks; |
} |