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

Unified Diff: third_party/WebKit/Source/modules/peerconnection/RTCStatsResponse.cpp

Issue 2671933002: Migrate WTF::HashMap::add() to ::insert() (Closed)
Patch Set: rebase, add TODOs Created 3 years, 10 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/RTCStatsResponse.cpp
diff --git a/third_party/WebKit/Source/modules/peerconnection/RTCStatsResponse.cpp b/third_party/WebKit/Source/modules/peerconnection/RTCStatsResponse.cpp
index 712e20db258efbd04a4a6a90ec9cd41783de159a..ca4fc4ce5e86df8e5f25c0eaf29644171deb3d77 100644
--- a/third_party/WebKit/Source/modules/peerconnection/RTCStatsResponse.cpp
+++ b/third_party/WebKit/Source/modules/peerconnection/RTCStatsResponse.cpp
@@ -41,7 +41,7 @@ RTCLegacyStatsReport* RTCStatsResponse::namedItem(const AtomicString& name) {
void RTCStatsResponse::addStats(const WebRTCLegacyStats& stats) {
m_result.push_back(RTCLegacyStatsReport::create(stats.id(), stats.type(),
stats.timestamp()));
- m_idmap.add(stats.id(), m_result.size() - 1);
+ m_idmap.insert(stats.id(), m_result.size() - 1);
RTCLegacyStatsReport* report = m_result[m_result.size() - 1].get();
for (std::unique_ptr<WebRTCLegacyStatsMemberIterator> member(

Powered by Google App Engine
This is Rietveld 408576698