| Index: chrome/browser/resources/chromeos/login/login_non_lock_shared.js
|
| diff --git a/chrome/browser/resources/chromeos/login/login_non_lock_shared.js b/chrome/browser/resources/chromeos/login/login_non_lock_shared.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f0b8e08219b15f49326db33f70db24b1c4a5b038
|
| --- /dev/null
|
| +++ b/chrome/browser/resources/chromeos/login/login_non_lock_shared.js
|
| @@ -0,0 +1,54 @@
|
| +// Copyright 2013 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +/**
|
| + * @fileoverview Shared data between oobe and the login screens. These files
|
| + * are *not* used in the lock screen. If a file should also be used in the lock
|
| + * screen, added it to login_shared.js.
|
| + */
|
| +
|
| +<include src="network_dropdown.js">
|
| +
|
| +<include src="oobe_screen_reset_confirmation_overlay.js">
|
| +<include src="oobe_screen_reset.js">
|
| +<include src="oobe_screen_autolaunch.js">
|
| +<include src="oobe_screen_enable_kiosk.js">
|
| +<include src="oobe_screen_terms_of_service.js">
|
| +<include src="oobe_screen_user_image.js">
|
| +
|
| +<include src="screen_app_launch_splash.js">
|
| +<include src="screen_error_message.js">
|
| +<include src="screen_gaia_signin.js">
|
| +<include src="screen_password_changed.js">
|
| +<include src="screen_supervised_user_creation.js">
|
| +<include src="screen_tpm_error.js">
|
| +<include src="screen_wrong_hwid.js">
|
| +<include src="screen_confirm_password.js">
|
| +<include src="screen_fatal_error.js">
|
| +<include src="screen_device_disabled.js">
|
| +<include src="screen_unrecoverable_cryptohome_error.js">
|
| +
|
| +// Register assets for async loading.
|
| +[{
|
| + id: SCREEN_OOBE_ENROLLMENT,
|
| + html: [{ url: 'chrome://oobe/enrollment.html', targetID: 'inner-container' }],
|
| + css: ['chrome://oobe/enrollment.css'],
|
| + js: ['chrome://oobe/enrollment.js']
|
| +}].forEach(cr.ui.login.ResourceLoader.registerAssets);
|
| +
|
| +(function() {
|
| + 'use strict';
|
| +
|
| + document.addEventListener('DOMContentLoaded', function() {
|
| + // Immediately load async assets.
|
| + // TODO(dconnelly): remove this at some point and only load as needed.
|
| + // See crbug.com/236426
|
| + cr.ui.login.ResourceLoader.loadAssets(SCREEN_OOBE_ENROLLMENT, function() {
|
| + // This screen is async-loaded so we manually trigger i18n processing.
|
| + i18nTemplate.process($('oauth-enrollment'), loadTimeData);
|
| + // Delayed binding since this isn't defined yet.
|
| + login.OAuthEnrollmentScreen.register();
|
| + });
|
| + });
|
| +})();
|
|
|