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

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

Issue 2156063002: Preparation for new Promise-based RTCPeerConnection.getStats. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase with master Created 4 years, 5 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 add7873e5fe0907a5a2a1cd43853ab16222d5fe6..65345212f254d9b4efd13140ced542c33716b9b4 100644
--- a/third_party/WebKit/Source/modules/peerconnection/RTCStatsResponse.cpp
+++ b/third_party/WebKit/Source/modules/peerconnection/RTCStatsResponse.cpp
@@ -35,7 +35,7 @@ RTCStatsResponse::RTCStatsResponse()
{
}
-RTCStatsReport* RTCStatsResponse::namedItem(const AtomicString& name)
+RTCLegacyStatsReport* RTCStatsResponse::namedItem(const AtomicString& name)
{
if (m_idmap.find(name) != m_idmap.end())
return m_result[m_idmap.get(name)];
@@ -44,7 +44,7 @@ RTCStatsReport* RTCStatsResponse::namedItem(const AtomicString& name)
size_t RTCStatsResponse::addReport(const String& id, const String& type, double timestamp)
{
- m_result.append(RTCStatsReport::create(id, type, timestamp));
+ m_result.append(RTCLegacyStatsReport::create(id, type, timestamp));
m_idmap.add(id, m_result.size() - 1);
return m_result.size() - 1;
}

Powered by Google App Engine
This is Rietveld 408576698