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 4d1f0765e6d416ae702f549c642a72a552b466ee..712e20db258efbd04a4a6a90ec9cd41783de159a 100644 |
--- a/third_party/WebKit/Source/modules/peerconnection/RTCStatsResponse.cpp |
+++ b/third_party/WebKit/Source/modules/peerconnection/RTCStatsResponse.cpp |
@@ -39,8 +39,8 @@ RTCLegacyStatsReport* RTCStatsResponse::namedItem(const AtomicString& name) { |
} |
void RTCStatsResponse::addStats(const WebRTCLegacyStats& stats) { |
- m_result.append(RTCLegacyStatsReport::create(stats.id(), stats.type(), |
- stats.timestamp())); |
+ m_result.push_back(RTCLegacyStatsReport::create(stats.id(), stats.type(), |
+ stats.timestamp())); |
m_idmap.add(stats.id(), m_result.size() - 1); |
RTCLegacyStatsReport* report = m_result[m_result.size() - 1].get(); |