| 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="../../../../../ui/login/screen.js"> | 9 <include src="../../../../../ui/login/screen.js"> |
| 10 <include src="screen_context.js"> | 10 <include src="screen_context.js"> |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 }; | 255 }; |
| 256 | 256 |
| 257 /** | 257 /** |
| 258 * Login for telemetry. | 258 * Login for telemetry. |
| 259 * @param {string} username Login username. | 259 * @param {string} username Login username. |
| 260 * @param {string} password Login password. | 260 * @param {string} password Login password. |
| 261 */ | 261 */ |
| 262 Oobe.loginForTesting = function(username, password) { | 262 Oobe.loginForTesting = function(username, password) { |
| 263 Oobe.disableSigninUI(); | 263 Oobe.disableSigninUI(); |
| 264 chrome.send('skipToLoginForTesting', [username]); | 264 chrome.send('skipToLoginForTesting', [username]); |
| 265 chrome.send('completeLogin', [username, password, false]); | 265 chrome.send('completeLogin', ['12345', username, password, false]); |
| 266 }; | 266 }; |
| 267 | 267 |
| 268 /** | 268 /** |
| 269 * Guest login for telemetry. | 269 * Guest login for telemetry. |
| 270 */ | 270 */ |
| 271 Oobe.guestLoginForTesting = function() { | 271 Oobe.guestLoginForTesting = function() { |
| 272 Oobe.skipToLoginForTesting(); | 272 Oobe.skipToLoginForTesting(); |
| 273 chrome.send('launchIncognito'); | 273 chrome.send('launchIncognito'); |
| 274 }; | 274 }; |
| 275 | 275 |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 document.addEventListener('DOMContentLoaded', function() { | 374 document.addEventListener('DOMContentLoaded', function() { |
| 375 if (!window['WAIT_FOR_POLYMER']) { | 375 if (!window['WAIT_FOR_POLYMER']) { |
| 376 initializeOobe(); | 376 initializeOobe(); |
| 377 return; | 377 return; |
| 378 } | 378 } |
| 379 window.addEventListener('polymer-ready', function() { | 379 window.addEventListener('polymer-ready', function() { |
| 380 initializeOobe(); | 380 initializeOobe(); |
| 381 }); | 381 }); |
| 382 }); | 382 }); |
| 383 })(); | 383 })(); |
| OLD | NEW |