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

Unified Diff: third_party/WebKit/Source/core/html/track/TrackListBase.h

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/TrackListBase.h
diff --git a/third_party/WebKit/Source/core/html/track/TrackListBase.h b/third_party/WebKit/Source/core/html/track/TrackListBase.h
index a4a08313103a07900523c7dffee3bcb96f5e812d..5c279fcceb3afe18042dca2cd13232d0df3b170c 100644
--- a/third_party/WebKit/Source/core/html/track/TrackListBase.h
+++ b/third_party/WebKit/Source/core/html/track/TrackListBase.h
@@ -62,7 +62,7 @@ class TrackListBase : public EventTargetWithInlineData {
m_tracks[i]->setMediaElement(0);
scheduleEvent(
TrackEvent::create(EventTypeNames::removetrack, m_tracks[i].get()));
- m_tracks.remove(i);
+ m_tracks.erase(i);
return;
}
NOTREACHED();

Powered by Google App Engine
This is Rietveld 408576698