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

Unified Diff: chrome/browser/resources/print_preview/settings/other_options_settings.js

Issue 2921783003: WebUI: Fix/suppress some existing violations of no-restricted-globals. (Closed)
Patch Set: Fix svg Created 3 years, 6 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 | « chrome/browser/resources/print_preview/print_preview_animations.js ('k') | ui/webui/resources/js/cr.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/print_preview/settings/other_options_settings.js
diff --git a/chrome/browser/resources/print_preview/settings/other_options_settings.js b/chrome/browser/resources/print_preview/settings/other_options_settings.js
index 35cfeff8a8a420eb7f819c65516a09f68553700c..7b571279d3f26d9d5a169bd42babc000ff4a1f0d 100644
--- a/chrome/browser/resources/print_preview/settings/other_options_settings.js
+++ b/chrome/browser/resources/print_preview/settings/other_options_settings.js
@@ -69,8 +69,7 @@ cr.define('print_preview', function() {
/** Initializes container and checkbox */
decorate: function() {
- this.container_ = /** @type {HTMLElement} */(
- document.getElementById(this.cssId_));
+ this.container_ = $(this.cssId_);
this.checkbox_ = /** @type {HTMLElement} */(
this.container_.querySelector('.checkbox'));
},
« no previous file with comments | « chrome/browser/resources/print_preview/print_preview_animations.js ('k') | ui/webui/resources/js/cr.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698