Index: chrome/browser/chromeos/login/login_utils.cc |
diff --git a/chrome/browser/chromeos/login/login_utils.cc b/chrome/browser/chromeos/login/login_utils.cc |
index e2c29372939c4e0f599ce08a253691f0d13a3826..1164450791072249c62d9f22a39a444e01c2e2f7 100644 |
--- a/chrome/browser/chromeos/login/login_utils.cc |
+++ b/chrome/browser/chromeos/login/login_utils.cc |
@@ -498,10 +498,10 @@ void LoginUtilsImpl::OnProfileCreated(Profile* user_profile, Status status) { |
} |
std::string oauth1_token; |
std::string oauth1_secret; |
- if (!has_cookies_ && |
- ReadOAuth1AccessToken(user_profile, &oauth1_token, &oauth1_secret)) { |
- // Verify OAuth access token when we find it in the profile and no cookies |
- // available because user is not signing in using extension. |
+ if (ReadOAuth1AccessToken(user_profile, &oauth1_token, &oauth1_secret) || |
+ !has_cookies_) { |
+ // Verify OAuth access token when we find it in the profile and always if |
+ // if we don't have cookies. |
authenticator_->VerifyOAuth1AccessToken(oauth1_token, oauth1_secret); |
} else { |
// If we don't have it, fetch OAuth1 access token. |