OLD | NEW |
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 12 matching lines...) Expand all Loading... |
23 <include src="screen_gaia_signin.js"> | 23 <include src="screen_gaia_signin.js"> |
24 <include src="screen_password_changed.js"> | 24 <include src="screen_password_changed.js"> |
25 <include src="screen_supervised_user_creation.js"> | 25 <include src="screen_supervised_user_creation.js"> |
26 <include src="screen_tpm_error.js"> | 26 <include src="screen_tpm_error.js"> |
27 <include src="screen_wrong_hwid.js"> | 27 <include src="screen_wrong_hwid.js"> |
28 <include src="screen_confirm_password.js"> | 28 <include src="screen_confirm_password.js"> |
29 <include src="screen_fatal_error.js"> | 29 <include src="screen_fatal_error.js"> |
30 <include src="screen_device_disabled.js"> | 30 <include src="screen_device_disabled.js"> |
31 <include src="screen_unrecoverable_cryptohome_error.js"> | 31 <include src="screen_unrecoverable_cryptohome_error.js"> |
32 | 32 |
| 33 <include src="../../gaia_auth_host/authenticator.js"> |
| 34 |
33 // Register assets for async loading. | 35 // Register assets for async loading. |
34 [{ | 36 [{ |
35 id: SCREEN_OOBE_ENROLLMENT, | 37 id: SCREEN_OOBE_ENROLLMENT, |
36 html: [{ url: 'chrome://oobe/enrollment.html', targetID: 'inner-container' }], | 38 html: [{ url: 'chrome://oobe/enrollment.html', targetID: 'inner-container' }], |
37 css: ['chrome://oobe/enrollment.css'], | 39 css: ['chrome://oobe/enrollment.css'], |
38 js: ['chrome://oobe/enrollment.js'] | 40 js: ['chrome://oobe/enrollment.js'] |
39 }].forEach(cr.ui.login.ResourceLoader.registerAssets); | 41 }].forEach(cr.ui.login.ResourceLoader.registerAssets); |
40 | 42 |
41 (function() { | 43 (function() { |
42 'use strict'; | 44 'use strict'; |
43 | 45 |
44 document.addEventListener('DOMContentLoaded', function() { | 46 document.addEventListener('DOMContentLoaded', function() { |
45 // Immediately load async assets. | 47 // Immediately load async assets. |
46 cr.ui.login.ResourceLoader.loadAssets(SCREEN_OOBE_ENROLLMENT, function() { | 48 cr.ui.login.ResourceLoader.loadAssets(SCREEN_OOBE_ENROLLMENT, function() { |
47 // This screen is async-loaded so we manually trigger i18n processing. | 49 // This screen is async-loaded so we manually trigger i18n processing. |
48 i18nTemplate.process($('oauth-enrollment'), loadTimeData); | 50 i18nTemplate.process($('oauth-enrollment'), loadTimeData); |
49 // Delayed binding since this isn't defined yet. | 51 // Delayed binding since this isn't defined yet. |
50 login.OAuthEnrollmentScreen.register(); | 52 login.OAuthEnrollmentScreen.register(); |
51 }); | 53 }); |
52 }); | 54 }); |
53 })(); | 55 })(); |
OLD | NEW |