| Index: chrome/browser/resources/media_internals/disjoint_range_set.js
|
| diff --git a/chrome/browser/resources/media_internals/disjoint_range_set.js b/chrome/browser/resources/media_internals/disjoint_range_set.js
|
| index cff8f6922a6af2cfb0b8987078519a01139e3d64..abf27339cc51ae28bbcc79e1356cb45dfbfebcaa 100644
|
| --- a/chrome/browser/resources/media_internals/disjoint_range_set.js
|
| +++ b/chrome/browser/resources/media_internals/disjoint_range_set.js
|
| @@ -125,7 +125,18 @@ cr.define('media', function() {
|
| });
|
|
|
| return results;
|
| - }
|
| + },
|
| +
|
| + /**
|
| + * Finds the maximum value present in any of the contained ranges.
|
| + * @return {int} The maximum value contained by this DisjointRangeSet.
|
| + */
|
| + max: function() {
|
| + var max = -Infinity;
|
| + for (var start in this.ranges_)
|
| + max = Math.max(max, this.ranges_[start]);
|
| + return max;
|
| + },
|
| };
|
|
|
| return {
|
|
|