Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1832)

Unified Diff: chrome/browser/resources/extensions/extensions.js

Issue 10911032: Extension Commands: Make sure we can open the Configure Commands overlay from the install bubble. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698