Index: chrome/browser/resources/md_bookmarks/command_manager.js |
diff --git a/chrome/browser/resources/md_bookmarks/command_manager.js b/chrome/browser/resources/md_bookmarks/command_manager.js |
index 24c26d51c673ca4bed26f2de7693e02bdd4bce12..c7fae82bb3a65bd018386e24a79ccce3abd09d47 100644 |
--- a/chrome/browser/resources/md_bookmarks/command_manager.js |
+++ b/chrome/browser/resources/md_bookmarks/command_manager.js |
@@ -86,12 +86,14 @@ cr.define('bookmarks', function() { |
/** |
* Display the command context menu at (|x|, |y|) in window co-ordinates. |
- * Commands will execute on the currently selected items. |
+ * Commands will execute on |items| if given, or on the currently selected |
+ * items. |
* @param {number} x |
* @param {number} y |
+ * @param {Set<string>=} items |
*/ |
- openCommandMenuAtPosition: function(x, y) { |
- this.menuIds_ = this.getState().selection.items; |
+ openCommandMenuAtPosition: function(x, y, items) { |
+ this.menuIds_ = items || this.getState().selection.items; |
/** @type {!CrActionMenuElement} */ (this.$.dropdown) |
.showAtPosition({top: y, left: x}); |
}, |