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

Unified Diff: chrome/browser/chromeos/login/parallel_authenticator.cc

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
Index: chrome/browser/chromeos/login/parallel_authenticator.cc
===================================================================
--- chrome/browser/chromeos/login/parallel_authenticator.cc (revision 177312)
+++ chrome/browser/chromeos/login/parallel_authenticator.cc (working copy)
@@ -187,9 +187,7 @@
already_reported_success_(false),
owner_is_verified_(false),
user_can_login_(false),
- using_oauth_(
- !CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kSkipOAuthLogin)) {
+ using_oauth_(true) {
}
void ParallelAuthenticator::AuthenticateToLogin(
@@ -387,8 +385,11 @@
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
DCHECK(using_oauth_);
// Mark this account's OAuth token state as invalid in the local state.
- UserManager::Get()->SaveUserOAuthStatus(user_name,
- User::OAUTH_TOKEN_STATUS_INVALID);
+ UserManager::Get()->SaveUserOAuthStatus(
+ user_name,
+ CommandLine::ForCurrentProcess()->HasSwitch(switches::kForceOAuth1) ?
+ User::OAUTH1_TOKEN_STATUS_INVALID :
+ User::OAUTH2_TOKEN_STATUS_INVALID);
}
void ParallelAuthenticator::RecoverEncryptedData(
« no previous file with comments | « chrome/browser/chromeos/login/online_attempt.cc ('k') | chrome/browser/chromeos/login/policy_oauth_fetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698