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

Side by Side Diff: chrome/browser/resources/chromeos/login/login_non_lock_shared.js

Issue 2944703004: Run clang-format on .js files in c/b/r/chromeos (Closed)
Patch Set: 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 /** 5 /**
6 * @fileoverview Shared data between oobe and the login screens. These files 6 * @fileoverview Shared data between oobe and the login screens. These files
7 * are *not* used in the lock screen. If a file should also be used in the lock 7 * are *not* used in the lock screen. If a file should also be used in the lock
8 * screen, added it to login_shared.js. 8 * screen, added it to login_shared.js.
9 */ 9 */
10 10
(...skipping 21 matching lines...) Expand all
32 // <include src="screen_device_disabled.js"> 32 // <include src="screen_device_disabled.js">
33 // <include src="screen_unrecoverable_cryptohome_error.js"> 33 // <include src="screen_unrecoverable_cryptohome_error.js">
34 // <include src="screen_active_directory_password_change.js"> 34 // <include src="screen_active_directory_password_change.js">
35 // <include src="screen_encryption_migration.js"> 35 // <include src="screen_encryption_migration.js">
36 36
37 // <include src="../../gaia_auth_host/authenticator.js"> 37 // <include src="../../gaia_auth_host/authenticator.js">
38 38
39 // Register assets for async loading. 39 // Register assets for async loading.
40 [{ 40 [{
41 id: SCREEN_OOBE_ENROLLMENT, 41 id: SCREEN_OOBE_ENROLLMENT,
42 html: [{ url: 'chrome://oobe/enrollment.html', targetID: 'inner-container' }], 42 html: [{url: 'chrome://oobe/enrollment.html', targetID: 'inner-container'}],
43 css: ['chrome://oobe/enrollment.css'], 43 css: ['chrome://oobe/enrollment.css'],
44 js: ['chrome://oobe/enrollment.js'] 44 js: ['chrome://oobe/enrollment.js']
45 }].forEach(cr.ui.login.ResourceLoader.registerAssets); 45 }].forEach(cr.ui.login.ResourceLoader.registerAssets);
46 46
47 (function() { 47 (function() {
48 'use strict'; 48 'use strict';
49 49
50 document.addEventListener('DOMContentLoaded', function() { 50 document.addEventListener('DOMContentLoaded', function() {
51 // Immediately load async assets. 51 // Immediately load async assets.
52 cr.ui.login.ResourceLoader.loadAssets(SCREEN_OOBE_ENROLLMENT, function() { 52 cr.ui.login.ResourceLoader.loadAssets(SCREEN_OOBE_ENROLLMENT, function() {
53 // This screen is async-loaded so we manually trigger i18n processing. 53 // This screen is async-loaded so we manually trigger i18n processing.
54 i18nTemplate.process($('oauth-enrollment'), loadTimeData); 54 i18nTemplate.process($('oauth-enrollment'), loadTimeData);
55 // Delayed binding since this isn't defined yet. 55 // Delayed binding since this isn't defined yet.
56 login.OAuthEnrollmentScreen.register(); 56 login.OAuthEnrollmentScreen.register();
57 });
58 }); 57 });
58 });
59 })(); 59 })();
OLDNEW
« no previous file with comments | « chrome/browser/resources/chromeos/login/lock.js ('k') | chrome/browser/resources/chromeos/login/login_shared.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698