| 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;
|
|
|