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

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

Issue 2480203002: ui: Cleanup class/struct forward declarations (Closed)
Patch Set: Sync CL to position 430550 Created 4 years, 1 month 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/player_info.js
diff --git a/content/browser/resources/media/player_info.js b/content/browser/resources/media/player_info.js
index af1f1944518f83ac0d811a5b1b1a84d931174e13..3fad95d838e3595819c928edbc5dee0fe976f944 100644
--- a/content/browser/resources/media/player_info.js
+++ b/content/browser/resources/media/player_info.js
@@ -17,8 +17,6 @@ var PlayerInfo = (function() {
this.id = id;
// The current value of the properties for this player.
this.properties = {};
- // All of the past (and present) values of the properties.
- this.pastValues = {};
// Every single event in the order in which they were received.
this.allEvents = [];
@@ -48,17 +46,12 @@ var PlayerInfo = (function() {
this.properties[key] = value;
- if (!this.pastValues[key]) {
- this.pastValues[key] = [];
- }
-
var recordValue = {
time: timestamp - this.firstTimestamp_,
key: key,
value: value
};
- this.pastValues[key].push(recordValue);
this.allEvents.push(recordValue);
},
« no previous file with comments | « content/browser/resources/media/media_internals.html ('k') | content/browser/security_exploit_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698