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

Unified Diff: third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.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/modules/peerconnection/RTCPeerConnection.cpp
diff --git a/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp b/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp
index fcea99b69faf1737293ee78a5592fd1dcd3292d2..e579e4ea5b8dbddaefefdc66952172ef8493a971 100644
--- a/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp
+++ b/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp
@@ -1121,7 +1121,7 @@ void RTCPeerConnection::removeStream(MediaStream* stream,
if (pos == kNotFound)
return;
- m_localStreams.remove(pos);
+ m_localStreams.erase(pos);
m_peerHandler->removeStream(stream->descriptor());
}
@@ -1331,7 +1331,7 @@ void RTCPeerConnection::didRemoveRemoteStream(
size_t pos = m_remoteStreams.find(stream);
DCHECK(pos != kNotFound);
- m_remoteStreams.remove(pos);
+ m_remoteStreams.erase(pos);
scheduleDispatchEvent(
MediaStreamEvent::create(EventTypeNames::removestream, stream));

Powered by Google App Engine
This is Rietveld 408576698