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

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

Issue 2921783003: WebUI: Fix/suppress some existing violations of no-restricted-globals. (Closed)
Patch Set: Address comment. Created 3 years, 7 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_command_list.js
diff --git a/chrome/browser/resources/extensions/extension_command_list.js b/chrome/browser/resources/extensions/extension_command_list.js
index eca1797c75babb20359c27eed7ca1ea225ca5e77..3d6572a772e07c01cb647f25d72ccc2880fad17c 100644
--- a/chrome/browser/resources/extensions/extension_command_list.js
+++ b/chrome/browser/resources/extensions/extension_command_list.js
@@ -378,7 +378,7 @@ cr.define('extensions', function() {
*/
handleSetCommandScope_: function(event) {
var parsed = this.parseElementId_('setCommandScope', event.target.id);
- var element = document.getElementById(
+ var element = $(
'setCommandScope-' + parsed.extensionId + '-' + parsed.commandName);
var scope = element.selectedIndex == 1 ?
chrome.developerPrivate.CommandScope.GLOBAL :

Powered by Google App Engine
This is Rietveld 408576698