Chromium Code Reviews| Index: chrome/browser/resources/extensions/extensions.js |
| =================================================================== |
| --- chrome/browser/resources/extensions/extensions.js (revision 154111) |
| +++ chrome/browser/resources/extensions/extensions.js (working copy) |
| @@ -116,6 +116,14 @@ |
| extensions.ExtensionFocusManager.getInstance().initialize(); |
| + var path = document.location.pathname; |
| + if (path.length > 1) { |
| + // Skip starting slash and remove trailing slash (if any). |
| + var overlayName = path.slice(1).replace(/\/$/, ''); |
| + if (overlayName == 'configureCommands') |
| + this.showExtensionCommandsConfigUi_(); |
| + } |
|
Finnur
2012/08/31 16:29:31
I opted for a similar but simpler scheme of openin
|
| + |
| preventDefaultOnPoundLinkClicks(); // From shared/js/util.js. |
| }, |
| @@ -144,17 +152,26 @@ |
| }, |
| /** |
| - * Handles the Configure (Extension) Commands link. |
| + * Shows the Extension Commands configuration UI. |
| * @param {Event} e Change event. |
| * @private |
| */ |
| - handleExtensionCommandsConfig_: function(e) { |
| + showExtensionCommandsConfigUi_: function(e) { |
| ExtensionSettings.showOverlay($('extensionCommandsOverlay')); |
| chrome.send('coreOptionsUserMetricsAction', |
| ['Options_ExtensionCommands']); |
| }, |
| /** |
| + * Handles the Configure (Extension) Commands link. |
| + * @param {Event} e Change event. |
| + * @private |
| + */ |
| + handleExtensionCommandsConfig_: function(e) { |
| + this.showExtensionCommandsConfigUi_(); |
| + }, |
| + |
| + /** |
| * Handles the Update Extension Now button. |
| * @param {Event} e Change event. |
| * @private |