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

Unified Diff: chrome/browser/resources/md_history/history_list.js

Issue 2255033002: [MD History] Copy stats from the old history page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sidebar_stats
Patch Set: rebase Created 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/md_history/history_list.js
diff --git a/chrome/browser/resources/md_history/history_list.js b/chrome/browser/resources/md_history/history_list.js
index 11b59112e52d82afcd77d6f342b1d7140d652865..371ecb86811478d4506c9142ad4fe74669f60398 100644
--- a/chrome/browser/resources/md_history/history_list.js
+++ b/chrome/browser/resources/md_history/history_list.js
@@ -84,6 +84,10 @@ Polymer({
this.lastSearchedTerm_ = this.searchedTerm;
}
+ results.forEach(function(item, index) {
tsergeant 2016/08/18 04:14:34 Can this be done with databinding? index="[[index
calamity 2016/08/19 13:59:43 This is on the actual HistoryEntry backing object,
+ item.index = index + (this.historyData_ ? this.historyData_.length : 0);
+ });
+
if (this.historyData_) {
// If we have previously received data, push the new items onto the
// existing array.

Powered by Google App Engine
This is Rietveld 408576698