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

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

Issue 1009543003: Slight reduction in string copying for WebRTC stats. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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_table.js
diff --git a/content/browser/resources/media/stats_table.js b/content/browser/resources/media/stats_table.js
index a9d2ab0543d41bf564411c4abb7c9a05d2b171bd..8ad804a089f6ed094a730770946d345b395ca470 100644
--- a/content/browser/resources/media/stats_table.js
+++ b/content/browser/resources/media/stats_table.js
@@ -142,7 +142,7 @@ var StatsTable = (function(ssrcInfoManager) {
trElement.cells[1].textContent = value;
// Highlights the table for the active connection.
- if (rowName == 'googActiveConnection' && value == 'true')
+ if (rowName == 'googActiveConnection' && value == true)
statsTable.parentElement.classList.add('stats-table-active-connection');
}
};
« no previous file with comments | « no previous file | content/renderer/media/peer_connection_tracker.cc » ('j') | content/renderer/media/peer_connection_tracker.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698