Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1375)

Unified Diff: third_party/WebKit/Source/core/html/track/CueTimeline.cpp

Issue 2776203002: Migrate WTF::Vector::remove() to ::erase() (Closed)
Patch Set: rebase, repatch VectorTest Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/html/track/CueTimeline.cpp
diff --git a/third_party/WebKit/Source/core/html/track/CueTimeline.cpp b/third_party/WebKit/Source/core/html/track/CueTimeline.cpp
index a499534a84ed45baeab0896fa118ddaef9e7a4b0..54d941ea6b3c74b3a50a4d682f407d1812fe8053 100644
--- a/third_party/WebKit/Source/core/html/track/CueTimeline.cpp
+++ b/third_party/WebKit/Source/core/html/track/CueTimeline.cpp
@@ -65,7 +65,7 @@ void CueTimeline::removeCueInternal(TextTrackCue* cue) {
size_t index = m_currentlyActiveCues.find(interval);
if (index != kNotFound) {
DCHECK(cue->isActive());
- m_currentlyActiveCues.remove(index);
+ m_currentlyActiveCues.erase(index);
cue->setIsActive(false);
// Since the cue will be removed from the media element and likely the
// TextTrack might also be destructed, notifying the region of the cue

Powered by Google App Engine
This is Rietveld 408576698