| 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 76cb2f5e1c83e3d5793157e4072a9bf2ce4ad373..f8bbac03555fd47d47270079290d4d7d36a0b348 100644
|
| --- a/chrome/browser/resources/md_history/list_container.js
|
| +++ b/chrome/browser/resources/md_history/list_container.js
|
| @@ -83,9 +83,15 @@ Polymer({
|
| .unselectAllItems(count);
|
| },
|
|
|
| - deleteSelected: function() {
|
| - /** @type {HistoryListElement} */ (this.$['infinite-list'])
|
| - .deleteSelected();
|
| + /**
|
| + * Delete all the currently selected history items. Will prompt the user with
|
| + * a dialog to confirm that the deletion should be performed.
|
| + */
|
| + deleteSelectedWithPrompt: function() {
|
| + if (!loadTimeData.getBoolean('allowDeletingHistory'))
|
| + return;
|
| +
|
| + this.$.dialog.open();
|
| },
|
|
|
| /**
|
| @@ -131,4 +137,15 @@ Polymer({
|
| }
|
| }
|
| },
|
| +
|
| + /** @private */
|
| + onDialogConfirmTap_: function() {
|
| + this.$['infinite-list'].deleteSelected();
|
| + this.$.dialog.close();
|
| + },
|
| +
|
| + /** @private */
|
| + onDialogCancelTap_: function() {
|
| + this.$.dialog.close();
|
| + }
|
| });
|
|
|