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

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

Issue 677703002: Revert of Revert of Inline sign in extracts gaia id from HTTP header and seeds account tracker (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
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="../../../../../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
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
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 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698