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

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

Issue 473153002: 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: Address review comments 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 // TODO(rogerta): expose gaiaId to caller?
achuithb 2014/10/21 21:11:00 Is there a bug-id that you could reference here? I
Roger Tawa OOO till Jul 10th 2014/10/21 21:35:25 This was more of a question than a bug. I will re
266 chrome.send('completeLogin', ['fake-gaia-id', username, password, false]);
achuithb 2014/10/21 21:11:00 Is this going to work? I hope this won't break tel
Roger Tawa OOO till Jul 10th 2014/10/21 21:35:25 Oops, should be a numeric field. Done.
266 }; 267 };
267 268
268 /** 269 /**
269 * Guest login for telemetry. 270 * Guest login for telemetry.
270 */ 271 */
271 Oobe.guestLoginForTesting = function() { 272 Oobe.guestLoginForTesting = function() {
272 Oobe.skipToLoginForTesting(); 273 Oobe.skipToLoginForTesting();
273 chrome.send('launchIncognito'); 274 chrome.send('launchIncognito');
274 }; 275 };
275 276
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 document.addEventListener('DOMContentLoaded', function() { 375 document.addEventListener('DOMContentLoaded', function() {
375 if (!window['WAIT_FOR_POLYMER']) { 376 if (!window['WAIT_FOR_POLYMER']) {
376 initializeOobe(); 377 initializeOobe();
377 return; 378 return;
378 } 379 }
379 window.addEventListener('polymer-ready', function() { 380 window.addEventListener('polymer-ready', function() {
380 initializeOobe(); 381 initializeOobe();
381 }); 382 });
382 }); 383 });
383 })(); 384 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698