| 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 Common OOBE controller methods. | 6 * @fileoverview Common OOBE controller methods. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 <include src="screen.js"></include> | 9 <include src="screen.js"></include> |
| 10 <include src="../user_images_grid.js"></include> | 10 <include src="../user_images_grid.js"></include> |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 DisplayManager.refocusCurrentPod(); | 240 DisplayManager.refocusCurrentPod(); |
| 241 }; | 241 }; |
| 242 | 242 |
| 243 /** | 243 /** |
| 244 * Login for autotests. | 244 * Login for autotests. |
| 245 * @param {string} username Login username. | 245 * @param {string} username Login username. |
| 246 * @param {string} password Login password. | 246 * @param {string} password Login password. |
| 247 */ | 247 */ |
| 248 Oobe.loginForTesting = function(username, password) { | 248 Oobe.loginForTesting = function(username, password) { |
| 249 chrome.send('skipToLoginForTesting', [username]); | 249 chrome.send('skipToLoginForTesting', [username]); |
| 250 chrome.send('completeLogin', [username, password]); | 250 chrome.send('completeLogin', [username, password, false]); |
| 251 }; | 251 }; |
| 252 | 252 |
| 253 /** | 253 /** |
| 254 * Authenticate for autotests. | 254 * Authenticate for autotests. |
| 255 * @param {string} username Login username. | 255 * @param {string} username Login username. |
| 256 * @param {string} password Login password. | 256 * @param {string} password Login password. |
| 257 */ | 257 */ |
| 258 Oobe.authenticateForTesting = function(username, password) { | 258 Oobe.authenticateForTesting = function(username, password) { |
| 259 chrome.send('authenticateUser', [username, password]); | 259 chrome.send('authenticateUser', [username, password]); |
| 260 }; | 260 }; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 cr.ui.login.ResourceLoader.loadAssets(SCREEN_OOBE_ENROLLMENT, function() { | 293 cr.ui.login.ResourceLoader.loadAssets(SCREEN_OOBE_ENROLLMENT, function() { |
| 294 // This screen is async-loaded so we manually trigger i18n processing. | 294 // This screen is async-loaded so we manually trigger i18n processing. |
| 295 i18nTemplate.process($('oauth-enrollment'), loadTimeData); | 295 i18nTemplate.process($('oauth-enrollment'), loadTimeData); |
| 296 // Delayed binding since this isn't defined yet. | 296 // Delayed binding since this isn't defined yet. |
| 297 login.OAuthEnrollmentScreen.register(); | 297 login.OAuthEnrollmentScreen.register(); |
| 298 }); | 298 }); |
| 299 | 299 |
| 300 // Delayed binding since this isn't defined yet. | 300 // Delayed binding since this isn't defined yet. |
| 301 cr.ui.Oobe.initialize(); | 301 cr.ui.Oobe.initialize(); |
| 302 }); | 302 }); |
| OLD | NEW |