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

Unified Diff: content/browser/resources/media/webrtc_internals.js

Issue 13859011: Fixes webrtc-internals stats reporting for the new stats API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync Created 7 years, 8 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: content/browser/resources/media/webrtc_internals.js
diff --git a/content/browser/resources/media/webrtc_internals.js b/content/browser/resources/media/webrtc_internals.js
index 77faaf805f3dfe3606ae83e5c318b94c3a8d2090..1493d56d0f72a83fecfec33fe461d4c654ea2fac 100644
--- a/content/browser/resources/media/webrtc_internals.js
+++ b/content/browser/resources/media/webrtc_internals.js
@@ -189,10 +189,9 @@ function updateAllPeerConnections(data) {
// data = {pid:|integer|, lid:|integer|, reports:|array|}.
// Each entry of reports =
-// {id:|string|, type:|string|, local:|object|, remote:|object|}.
-// reports.local or reports.remote =
-// {timestamp: |double|, values: |array|},
-// where values is an array of strings, whose even index entry represents
+// {id:|string|, type:|string|, stats:|object|},
+// where |stats| = {timestamp: |double|, values: |array|},
+// where |values| is an array of strings, whose even index entry represents
// the name of the stat, and the odd index entry represents the value of
// the stat.
function addStats(data) {
@@ -203,10 +202,8 @@ function addStats(data) {
var reportName = report.type + '-' + report.id;
var statsTable = ensureStatsTable(peerConnectionElement, reportName);
- addSingleReportToTable(statsTable, report.local);
- drawSingleReport(peerConnectionElement, reportName, report.local);
- addSingleReportToTable(statsTable, report.remote);
- drawSingleReport(peerConnectionElement, reportName, report.remote);
+ addSingleReportToTable(statsTable, report.stats);
+ drawSingleReport(peerConnectionElement, reportName, report.stats);
}
}
« no previous file with comments | « content/browser/resources/media/stats_graph_helper.js ('k') | content/renderer/media/peer_connection_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698