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

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: 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/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'));
},

Powered by Google App Engine
This is Rietveld 408576698