| Index: chrome/browser/resources/md_history/grouped_list.js
|
| diff --git a/chrome/browser/resources/md_history/grouped_list.js b/chrome/browser/resources/md_history/grouped_list.js
|
| index f5ca7d0ca8faa65b68e28cd567ef2eafd37b6da4..e3fc5d30c7d1d637e03c1fd49c731b023d721913 100644
|
| --- a/chrome/browser/resources/md_history/grouped_list.js
|
| +++ b/chrome/browser/resources/md_history/grouped_list.js
|
| @@ -126,6 +126,19 @@ Polymer({
|
| domains: this.createHistoryDomains_(this.historyData)
|
| }];
|
| }
|
| +
|
| + this.addItemIndexes();
|
| + },
|
| +
|
| + addItemIndexes: function() {
|
| + var index = 0;
|
| + this.groupedHistoryData_.forEach(function(group) {
|
| + group.domains.forEach(function(domain) {
|
| + domain.visits.forEach(function(visit) {
|
| + visit.index = index++;
|
| + });
|
| + });
|
| + });
|
| },
|
|
|
| /**
|
|
|