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

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: 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 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-next-line no-restricted-properties
8 var $ = function(id) { return document.getElementById(id); }; 9 var $ = function(id) { return document.getElementById(id); };
9 10
10 /** 11 /**
11 * WebUI for configuring instant.* preference values used by 12 * WebUI for configuring instant.* preference values used by
12 * Chrome's instant search system. 13 * Chrome's instant search system.
13 */ 14 */
14 var instantConfig = (function() { 15 var instantConfig = (function() {
15 'use strict'; 16 'use strict';
16 17
17 /** List of fields used to dynamically build form. **/ 18 /** List of fields used to dynamically build form. **/
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 } 182 }
182 183
183 return { 184 return {
184 initialize: initialize, 185 initialize: initialize,
185 getDebugInfoResult: getDebugInfoResult, 186 getDebugInfoResult: getDebugInfoResult,
186 getPreferenceValueResult: getPreferenceValueResult 187 getPreferenceValueResult: getPreferenceValueResult
187 }; 188 };
188 })(); 189 })();
189 190
190 document.addEventListener('DOMContentLoaded', instantConfig.initialize); 191 document.addEventListener('DOMContentLoaded', instantConfig.initialize);
OLDNEW
« no previous file with comments | « chrome/browser/resources/hotword/audio_client.js ('k') | chrome/browser/resources/print_preview/print_preview_animations.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698