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

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

Issue 145073003: Indicate which authentication flow was used in UserContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Speculative fix for telemetry. Created 6 years, 11 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="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
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
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 });
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/user_manager_impl.cc ('k') | chrome/browser/resources/chromeos/login/screen_gaia_signin.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698