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

Side by Side Diff: chrome/browser/resources/instant/instant.js

Issue 2921783003: WebUI: Fix/suppress some existing violations of no-restricted-globals. (Closed)
Patch Set: More 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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Redefine '$' here rather than including 'cr.js', since this is 5 // Redefine '$' here rather than including 'cr.js', since this is
6 // the only function needed. This allows this file to be loaded 6 // the only function needed. This allows this file to be loaded
7 // in a browser directly for layout and some testing purposes. 7 // in a browser directly for layout and some testing purposes.
8 /* eslint-disable no-restricted-properties */
8 var $ = function(id) { return document.getElementById(id); }; 9 var $ = function(id) { return document.getElementById(id); };
10 /* eslint-enable no-restricted-properties */
9 11
10 /** 12 /**
11 * WebUI for configuring instant.* preference values used by 13 * WebUI for configuring instant.* preference values used by
12 * Chrome's instant search system. 14 * Chrome's instant search system.
13 */ 15 */
14 var instantConfig = (function() { 16 var instantConfig = (function() {
15 'use strict'; 17 'use strict';
16 18
17 /** List of fields used to dynamically build form. **/ 19 /** List of fields used to dynamically build form. **/
18 var FIELDS = [ 20 var FIELDS = [
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 } 183 }
182 184
183 return { 185 return {
184 initialize: initialize, 186 initialize: initialize,
185 getDebugInfoResult: getDebugInfoResult, 187 getDebugInfoResult: getDebugInfoResult,
186 getPreferenceValueResult: getPreferenceValueResult 188 getPreferenceValueResult: getPreferenceValueResult
187 }; 189 };
188 })(); 190 })();
189 191
190 document.addEventListener('DOMContentLoaded', instantConfig.initialize); 192 document.addEventListener('DOMContentLoaded', instantConfig.initialize);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698