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

Unified Diff: chrome/browser/resources/chromeos/login/user_pod_row.js

Issue 11991002: Merge 176800 (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1364/src/
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/preferences.cc ('k') | chrome/browser/signin/signin_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/chromeos/login/user_pod_row.js
===================================================================
--- chrome/browser/resources/chromeos/login/user_pod_row.js (revision 177312)
+++ chrome/browser/resources/chromeos/login/user_pod_row.js (working copy)
@@ -57,8 +57,10 @@
*/
var OAuthTokenStatus = {
UNKNOWN: 0,
- INVALID: 1,
- VALID: 2
+ INVALID_OLD: 1,
+ VALID_OLD: 2,
+ INVALID_NEW: 3,
+ VALID_NEW: 4
};
/**
@@ -277,7 +279,8 @@
get needGaiaSignin() {
// Gaia signin is performed if the user has an invalid oauth token and is
// not currently signed in (i.e. not the lock screen).
- return this.user.oauthTokenStatus != OAuthTokenStatus.VALID &&
+ return this.user.oauthTokenStatus != OAuthTokenStatus.VALID_OLD &&
+ this.user.oauthTokenStatus != OAuthTokenStatus.VALID_NEW &&
!this.user.signedIn;
},
@@ -972,7 +975,7 @@
resetUserOAuthTokenStatus: function(username) {
var pod = this.getPodWithUsername_(username);
if (pod) {
- pod.user.oauthTokenStatus = OAuthTokenStatus.INVALID;
+ pod.user.oauthTokenStatus = OAuthTokenStatus.INVALID_OLD;
pod.update();
} else {
console.log('Failed to update Gaia state for: ' + username);
« no previous file with comments | « chrome/browser/chromeos/preferences.cc ('k') | chrome/browser/signin/signin_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698