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

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

Issue 22849012: Update WebUI calls to use extensions namespace, update IDs in c/b/r/extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change all HTML IDs in c/b/r/extensions to be in-hyphenated-case Created 7 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
Index: chrome/browser/resources/extensions/extension_commands_overlay.js
diff --git a/chrome/browser/resources/extensions/extension_commands_overlay.js b/chrome/browser/resources/extensions/extension_commands_overlay.js
index d984be5a1600b1a9778da19f69d0c759f2431842..db02bff8e888152d756efbe8b2adb38583230e9f 100644
--- a/chrome/browser/resources/extensions/extension_commands_overlay.js
+++ b/chrome/browser/resources/extensions/extension_commands_overlay.js
@@ -31,7 +31,7 @@ cr.define('extensions', function() {
cr.ui.overlay.globalInitialization();
overlay.addEventListener('cancelOverlay', this.handleDismiss_.bind(this));
- $('extensionCommandsDismiss').addEventListener('click',
+ $('extension-commands-dismiss').addEventListener('click',
this.handleDismiss_.bind(this));
// This will request the data to show on the page and will get a response
@@ -44,7 +44,7 @@ cr.define('extensions', function() {
* @param {Event} e The click event.
*/
handleDismiss_: function(e) {
- ExtensionSettings.showOverlay(null);
+ extensions.ExtensionSettings.showOverlay(null);
},
};
@@ -75,6 +75,3 @@ cr.define('extensions', function() {
ExtensionCommandsOverlay: ExtensionCommandsOverlay
};
});
-
-// Update the C++ call so this isn't necessary.
-var ExtensionCommandsOverlay = extensions.ExtensionCommandsOverlay;

Powered by Google App Engine
This is Rietveld 408576698