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

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

Issue 1370913002: ChromeOS: fix user signin by alias. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix telemetry tests. Created 5 years, 2 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 Common OOBE controller methods. 6 * @fileoverview Common OOBE controller methods.
7 */ 7 */
8 8
9 <include src="test_util.js"> 9 <include src="test_util.js">
10 <include src="../../../../../ui/login/screen.js"> 10 <include src="../../../../../ui/login/screen.js">
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 Oobe.skipToLoginForTesting = function() { 278 Oobe.skipToLoginForTesting = function() {
279 Oobe.disableSigninUI(); 279 Oobe.disableSigninUI();
280 chrome.send('skipToLoginForTesting'); 280 chrome.send('skipToLoginForTesting');
281 }; 281 };
282 282
283 /** 283 /**
284 * Login for telemetry. 284 * Login for telemetry.
285 * @param {string} username Login username. 285 * @param {string} username Login username.
286 * @param {string} password Login password. 286 * @param {string} password Login password.
287 */ 287 */
288 Oobe.loginForTesting = function(username, password) { 288 Oobe.loginForTesting = function(username, password, gaia_id) {
289 Oobe.disableSigninUI(); 289 Oobe.disableSigninUI();
290 chrome.send('skipToLoginForTesting', [username]); 290 chrome.send('skipToLoginForTesting', [username]);
291 chrome.send('completeLogin', ['12345', username, password, false]); 291 if (!gaia_id) {
achuithb 2015/10/05 19:38:08 Should we add a TODO here to remove this? gaia_id
Alexander Alekseev 2015/10/05 21:21:27 Done.
292 gaia_id = '12345';
293 }
294 chrome.send('completeLogin', [gaia_id, username, password, false]);
292 }; 295 };
293 296
294 /** 297 /**
295 * Guest login for telemetry. 298 * Guest login for telemetry.
296 */ 299 */
297 Oobe.guestLoginForTesting = function() { 300 Oobe.guestLoginForTesting = function() {
298 Oobe.skipToLoginForTesting(); 301 Oobe.skipToLoginForTesting();
299 chrome.send('launchIncognito'); 302 chrome.send('launchIncognito');
300 }; 303 };
301 304
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 cr.ui.login.ResourceLoader.loadAssets(SCREEN_OOBE_ENROLLMENT, function() { 418 cr.ui.login.ResourceLoader.loadAssets(SCREEN_OOBE_ENROLLMENT, function() {
416 // This screen is async-loaded so we manually trigger i18n processing. 419 // This screen is async-loaded so we manually trigger i18n processing.
417 i18nTemplate.process($('oauth-enrollment'), loadTimeData); 420 i18nTemplate.process($('oauth-enrollment'), loadTimeData);
418 // Delayed binding since this isn't defined yet. 421 // Delayed binding since this isn't defined yet.
419 login.OAuthEnrollmentScreen.register(); 422 login.OAuthEnrollmentScreen.register();
420 }); 423 });
421 424
422 cr.ui.Oobe.initialize(); 425 cr.ui.Oobe.initialize();
423 }); 426 });
424 })(); 427 })();
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/test/oobe_base_test.cc ('k') | chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698