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

Unified Diff: chrome/browser/resources/md_bookmarks/actions.js

Issue 2752223004: MD Bookmarks: Remove deleted nodes from state tree (Closed)
Patch Set: Rebase Created 3 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/resources/md_bookmarks/api_listener.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/md_bookmarks/actions.js
diff --git a/chrome/browser/resources/md_bookmarks/actions.js b/chrome/browser/resources/md_bookmarks/actions.js
index 9c4915150b1d845f8b5db4d86dbf00f25aae0253..7686accd326e5b2024b752afb942f2c12e8f8211 100644
--- a/chrome/browser/resources/md_bookmarks/actions.js
+++ b/chrome/browser/resources/md_bookmarks/actions.js
@@ -44,12 +44,15 @@ cr.define('bookmarks.actions', function() {
* @param {string} id
* @param {string} parentId
* @param {number} index
+ * @param {NodeList} nodes
* @return {!Action}
*/
- function removeBookmark(id, parentId, index) {
+ function removeBookmark(id, parentId, index, nodes) {
+ var descendants = bookmarks.util.getDescendants(nodes, id);
return {
name: 'remove-bookmark',
id: id,
+ descendants: descendants,
parentId: parentId,
index: index,
};
« no previous file with comments | « no previous file | chrome/browser/resources/md_bookmarks/api_listener.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698