| 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 d0718e23b3160ab99de107e6eb7b55d65cebec98..68f626d159a7467eb5014116d5f6882ed250641d 100644
|
| --- a/chrome/browser/resources/md_history/history_list.js
|
| +++ b/chrome/browser/resources/md_history/history_list.js
|
| @@ -29,6 +29,7 @@ Polymer({
|
| 'infinite-list.scroll': 'closeMenu_',
|
| 'tap': 'closeMenu_',
|
| 'toggle-menu': 'toggleMenu_',
|
| + 'remove-bookmark-stars': 'removeBookmarkStars_',
|
| },
|
|
|
| /**
|
| @@ -51,6 +52,23 @@ Polymer({
|
| target, e.detail.item);
|
| },
|
|
|
| + /**
|
| + * Remove bookmark star for history items with matching URLs.
|
| + * @param {{detail: !string}} e
|
| + * @private
|
| + */
|
| + removeBookmarkStars_: function(e) {
|
| + var url = e.detail;
|
| +
|
| + if (this.historyData_ === undefined)
|
| + return;
|
| +
|
| + for (var i = 0; i < this.historyData_.length; i++) {
|
| + if (this.historyData_[i].url == url)
|
| + this.set('historyData_.' + i + '.starred', false);
|
| + }
|
| + },
|
| +
|
| /** @private */
|
| onMoreFromSiteTap_: function() {
|
| var menu = /** @type {CrSharedMenuElement} */(this.$.sharedMenu);
|
|
|