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

Unified Diff: third_party/WebKit/Source/core/html/track/TextTrackList.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/TextTrackList.cpp
diff --git a/third_party/WebKit/Source/core/html/track/TextTrackList.cpp b/third_party/WebKit/Source/core/html/track/TextTrackList.cpp
index 5fb96a410cc9e1f073c13bfa0c9b87d01e93f995..67f4e399b9586846df1ddb7ec50575fcda83970b 100644
--- a/third_party/WebKit/Source/core/html/track/TextTrackList.cpp
+++ b/third_party/WebKit/Source/core/html/track/TextTrackList.cpp
@@ -209,7 +209,7 @@ void TextTrackList::remove(TextTrack* track) {
DCHECK_EQ(track->trackList(), this);
track->setTrackList(0);
- tracks->remove(index);
+ tracks->erase(index);
scheduleRemoveTrackEvent(track);
}

Powered by Google App Engine
This is Rietveld 408576698