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 79807522fb51ecb8ed3784007f58746a2a39c1cb..8749fdbf5986737bd8f30f0537cf4a1dd6f621ef 100644 |
--- a/chrome/browser/resources/md_bookmarks/actions.js |
+++ b/chrome/browser/resources/md_bookmarks/actions.js |
@@ -193,14 +193,15 @@ cr.define('bookmarks.actions', function() { |
/** |
* @param {Array<string>} ids |
* @param {BookmarksPageState} state |
+ * @param {string=} anchor |
* @return {!Action} |
*/ |
- function selectAll(ids, state) { |
+ function selectAll(ids, state, anchor) { |
return { |
name: 'select-items', |
clear: true, |
toggle: false, |
- anchor: state.selection.anchor, |
+ anchor: anchor ? anchor : state.selection.anchor, |
items: ids, |
}; |
} |