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

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

Issue 2200233003: MD History: Refresh the list when clearing browsing data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revise test 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/list_container.js
diff --git a/chrome/browser/resources/md_history/list_container.js b/chrome/browser/resources/md_history/list_container.js
index 0c79ae11e590ad084ac77391bf1278a88820d4a7..940ba0729a6b23c50379104a0a87634cd37dafa9 100644
--- a/chrome/browser/resources/md_history/list_container.js
+++ b/chrome/browser/resources/md_history/list_container.js
@@ -44,7 +44,7 @@ Polymer({
}
var list = /** @type {HistoryListElement} */(this.$['infinite-list']);
- list.addNewResults(results);
+ list.addNewResults(results, this.queryState.incremental);
if (info.finished)
list.disableResultLoading();
},
@@ -87,6 +87,15 @@ Polymer({
]);
},
+ historyDeleted: function() {
+ // Do not reload the list when there are items checked.
+ if (this.getSelectedItemCount() > 0)
+ return;
+
+ // Reload the list with current search state.
+ this.queryHistory(false);
+ },
+
/** @return {number} */
getSelectedItemCount: function() {
return this.getSelectedList_().selectedPaths.size;
« no previous file with comments | « chrome/browser/resources/md_history/history_list.js ('k') | chrome/test/data/webui/md_history/history_list_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698