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

Unified Diff: content/browser/resources/media/stats_graph_helper.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/stats_graph_helper.js
diff --git a/content/browser/resources/media/stats_graph_helper.js b/content/browser/resources/media/stats_graph_helper.js
index c56ab72e16467db7c84eacb560d98d2f4ff86ee7..2fe41147f9cd6810fdf1e8cd40a6d99504da1907 100644
--- a/content/browser/resources/media/stats_graph_helper.js
+++ b/content/browser/resources/media/stats_graph_helper.js
@@ -88,6 +88,9 @@ function drawSingleReport(peerConnectionElement, reportName, singleReport) {
for (var i = 0; i < singleReport.values.length - 1; i = i + 2) {
var rawLabel = singleReport.values[i];
var rawValue = parseInt(singleReport.values[i + 1]);
+ if (isNaN(rawValue))
+ return;
+
var rawDataSeriesId =
peerConnectionElement.id + '-' + reportName + '-' + rawLabel;
« no previous file with comments | « content/browser/media/webrtc_internals_browsertest.cc ('k') | content/browser/resources/media/webrtc_internals.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698