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

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

Issue 2208583006: UMA for pin unlock success/failure. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Fixed patch set 9 errors. Created 4 years, 4 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 Oobe signin screen implementation. 6 * @fileoverview Oobe signin screen implementation.
7 */ 7 */
8 8
9 login.createScreen('GaiaSigninScreen', 'gaia-signin', function() { 9 login.createScreen('GaiaSigninScreen', 'gaia-signin', function() {
10 // GAIA animation guard timer. Started when GAIA page is loaded 10 // GAIA animation guard timer. Started when GAIA page is loaded
(...skipping 841 matching lines...) Expand 10 before | Expand all | Expand 10 after
852 /** 852 /**
853 * Invoked when auth is completed successfully. 853 * Invoked when auth is completed successfully.
854 * @param {!Object} credentials Credentials of the completed authentication. 854 * @param {!Object} credentials Credentials of the completed authentication.
855 * @private 855 * @private
856 */ 856 */
857 onAuthCompleted_: function(credentials) { 857 onAuthCompleted_: function(credentials) {
858 if (credentials.useOffline) { 858 if (credentials.useOffline) {
859 this.email = credentials.email; 859 this.email = credentials.email;
860 chrome.send('authenticateUser', 860 chrome.send('authenticateUser',
861 [credentials.email, 861 [credentials.email,
862 credentials.password]); 862 credentials.password,
863 false]);
863 } else if (credentials.authCode) { 864 } else if (credentials.authCode) {
864 if (credentials.hasOwnProperty('authCodeOnly') && 865 if (credentials.hasOwnProperty('authCodeOnly') &&
865 credentials.authCodeOnly) { 866 credentials.authCodeOnly) {
866 chrome.send('completeAuthenticationAuthCodeOnly', 867 chrome.send('completeAuthenticationAuthCodeOnly',
867 [credentials.authCode]); 868 [credentials.authCode]);
868 } else { 869 } else {
869 chrome.send('completeAuthentication', [ 870 chrome.send('completeAuthentication', [
870 credentials.gaiaId, 871 credentials.gaiaId,
871 credentials.email, 872 credentials.email,
872 credentials.password, 873 credentials.password,
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
1049 1050
1050 if (show) 1051 if (show)
1051 $('gaia-whitelist-error').submitButton.focus(); 1052 $('gaia-whitelist-error').submitButton.focus();
1052 else 1053 else
1053 Oobe.showSigninUI(); 1054 Oobe.showSigninUI();
1054 1055
1055 this.updateControlsState(); 1056 this.updateControlsState();
1056 } 1057 }
1057 }; 1058 };
1058 }); 1059 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698