Chromium Code Reviews| 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 62a0ba82994ce578970a535b3acf4482ec4387d2..5a71f7e462196a885d6e05335b0272b0c9cfe6b0 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) { |
|
tsergeant
2017/03/23 05:36:07
My intention is still that actions should be able
|
| + var descendants = bookmarks.util.getDescendants(nodes, id); |
| return { |
| name: 'remove-bookmark', |
| id: id, |
| + descendants: descendants, |
| parentId: parentId, |
| index: index, |
| }; |