| Index: Source/devtools/front_end/ui/ContextMenu.js
|
| diff --git a/Source/devtools/front_end/ui/ContextMenu.js b/Source/devtools/front_end/ui/ContextMenu.js
|
| index e98f9e76f9dd23f8d3f9f4ac223bf2ffe4a7961b..139189abf88473e7366b2663ded0bc7b00ca6b86 100644
|
| --- a/Source/devtools/front_end/ui/ContextMenu.js
|
| +++ b/Source/devtools/front_end/ui/ContextMenu.js
|
| @@ -152,12 +152,14 @@ WebInspector.ContextSubMenuItem.prototype = {
|
| },
|
|
|
| /**
|
| - * @param {string} label
|
| * @param {string} actionId
|
| + * @param {string=} label
|
| * @return {!WebInspector.ContextMenuItem}
|
| */
|
| - appendAction: function(label, actionId)
|
| + appendAction: function(actionId, label)
|
| {
|
| + if (!label)
|
| + label = WebInspector.actionRegistry.actionTitle(actionId);
|
| var result = this.appendItem(label, WebInspector.actionRegistry.execute.bind(WebInspector.actionRegistry, actionId));
|
| var shortcut = WebInspector.shortcutRegistry.shortcutTitleForAction(actionId);
|
| if (shortcut)
|
| @@ -435,7 +437,7 @@ WebInspector.ContextMenu.prototype = {
|
| if (!group)
|
| continue;
|
| for (var extension of group)
|
| - this.appendAction(extension.title(), extension.descriptor()["actionId"]);
|
| + this.appendAction(extension.descriptor()["actionId"]);
|
| this.appendSeparator();
|
| }
|
| },
|
|
|