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

Side by Side Diff: content/browser/resources/media/webrtc_internals.js

Issue 428133005: Fix a time conversion bug on webrtc-internals. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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 unified diff | Download patch
« no previous file with comments | « content/browser/resources/media/stats_table.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 var USER_MEDIA_TAB_ID = 'user-media-tab-id'; 5 var USER_MEDIA_TAB_ID = 'user-media-tab-id';
6 6
7 var tabView = null; 7 var tabView = null;
8 var ssrcInfoManager = null; 8 var ssrcInfoManager = null;
9 var peerConnectionUpdateTable = null; 9 var peerConnectionUpdateTable = null;
10 var statsTable = null; 10 var statsTable = null;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 */ 60 */
61 setDataSeries: function(dataSeriesId, dataSeries) { 61 setDataSeries: function(dataSeriesId, dataSeries) {
62 this.record_.stats[dataSeriesId] = dataSeries; 62 this.record_.stats[dataSeriesId] = dataSeries;
63 }, 63 },
64 64
65 /** 65 /**
66 * @param {!Object} update The object contains keys "time", "type", and 66 * @param {!Object} update The object contains keys "time", "type", and
67 * "value". 67 * "value".
68 */ 68 */
69 addUpdate: function(update) { 69 addUpdate: function(update) {
70 var time = new Date(parseInt(update.time)); 70 var time = new Date(parseFloat(update.time));
71 this.record_.updateLog.push({ 71 this.record_.updateLog.push({
72 time: time.toLocaleString(), 72 time: time.toLocaleString(),
73 type: update.type, 73 type: update.type,
74 value: update.value, 74 value: update.value,
75 }); 75 });
76 }, 76 },
77 }; 77 };
78 78
79 return PeerConnectionRecord; 79 return PeerConnectionRecord;
80 })(); 80 })();
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 dumpCreator.disableAecRecording(); 328 dumpCreator.disableAecRecording();
329 } 329 }
330 330
331 331
332 /** 332 /**
333 * Set 333 * Set
334 */ 334 */
335 function enableAecRecording() { 335 function enableAecRecording() {
336 dumpCreator.enableAecRecording(); 336 dumpCreator.enableAecRecording();
337 } 337 }
OLDNEW
« no previous file with comments | « content/browser/resources/media/stats_table.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698