| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 Copyright (c) 2014 The Chromium Authors. All rights reserved. | 2 Copyright (c) 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/sugar.html"> | 7 <link rel="import" href="../lib/sugar.html"> |
| 8 | 8 |
| 9 <script> | 9 <script> |
| 10 var cqStatsUtil = cqStatsUtil || {}; | 10 var cqStatsUtil = cqStatsUtil || {}; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 return net.json({url: url, cache: true}); | 29 return net.json({url: url, cache: true}); |
| 30 }; | 30 }; |
| 31 | 31 |
| 32 cqStatsUtil.namedStat = function(name, cqStats) { | 32 cqStatsUtil.namedStat = function(name, cqStats) { |
| 33 return cqStats.stats.find(function(stat) { | 33 return cqStats.stats.find(function(stat) { |
| 34 return stat.name === name; | 34 return stat.name === name; |
| 35 }); | 35 }); |
| 36 }; | 36 }; |
| 37 })(); | 37 })(); |
| 38 </script> | 38 </script> |
| OLD | NEW |