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

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

Issue 2097003002: MD History: Remove bookmark when clicking bookmark star (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: minor change Created 4 years, 6 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/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.
*/
« no previous file with comments | « chrome/browser/resources/md_history/history_item.html ('k') | chrome/browser/resources/md_history/history_list.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698