Index: chrome/browser/resources/md_history/history_item.js |
diff --git a/chrome/browser/resources/md_history/history_item.js b/chrome/browser/resources/md_history/history_item.js |
index 2497a6f525fd7c79a08d6ceae3de6d0a1055d335..7cdc1d1283772caade9efeb0a9a8df375a4bf592 100644 |
--- a/chrome/browser/resources/md_history/history_item.js |
+++ b/chrome/browser/resources/md_history/history_item.js |
@@ -42,6 +42,16 @@ cr.define('md_history', function() { |
}, |
/** |
+ * Remove bookmark of current item when bookmark-star is clicked. |
+ * @private |
+ */ |
+ onRemoveBookmarkTap_: function() { |
+ md_history.BrowserService.getInstance() |
+ .removeBookmark(this.item.url); |
+ this.fire('remove-bookmark-stars', this.item.url); |
+ }, |
+ |
+ /** |
* Fires a custom event when the menu button is clicked. Sends the details |
* of the history item and where the menu should appear. |
*/ |