| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 Copyright 2014 The Chromium Authors. All rights reserved. | 2 Copyright 2014 The Chromium Authors. All rights reserved. |
| 3 Use of this source code is governed by a BSD-style license that can be | 3 Use of this source code is governed by a BSD-style license that can be |
| 4 found in the LICENSE file. | 4 found in the LICENSE file. |
| 5 --> | 5 --> |
| 6 | 6 |
| 7 <link rel="import" href="../lib/log.html"> | 7 <link rel="import" href="../lib/log.html"> |
| 8 <link rel="import" href="../lib/net.html"> | 8 <link rel="import" href="../lib/net.html"> |
| 9 <link rel="import" href="../lib/cqstats-util.html"> | 9 <link rel="import" href="../lib/cqstats-util.html"> |
| 10 | 10 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 return this._formattedDataPromise; | 44 return this._formattedDataPromise; |
| 45 }; | 45 }; |
| 46 | 46 |
| 47 CQStatsRatioGraphData.prototype.rowItems = function(index) { | 47 CQStatsRatioGraphData.prototype.rowItems = function(index) { |
| 48 var name = this._numeratorName; | 48 var name = this._numeratorName; |
| 49 return this._cqStatsListPromise.then(function(cqStatsList) { | 49 return this._cqStatsListPromise.then(function(cqStatsList) { |
| 50 var cqStats = cqStatsList[index]; | 50 var cqStats = cqStatsList[index]; |
| 51 return cqStatsUtil.loadStatItems(name, cqStats.key).then(function(items) { | 51 return cqStatsUtil.loadStatItems(name, cqStats.key).then(function(items) { |
| 52 return { | 52 return { |
| 53 items: items, | 53 items: items, |
| 54 begin: new Date(cqStats.begin * 1000), | 54 begin: cqStats.begin, |
| 55 end: new Date(cqStats.end * 1000), | 55 end: cqStats.end, |
| 56 }; | 56 }; |
| 57 }); | 57 }); |
| 58 }) | 58 }) |
| 59 }; | 59 }; |
| 60 </script> | 60 </script> |
| OLD | NEW |