| Index: chrome/browser/chromeos/login/existing_user_controller.cc
|
| diff --git a/chrome/browser/chromeos/login/existing_user_controller.cc b/chrome/browser/chromeos/login/existing_user_controller.cc
|
| index 28b2f1f9c3adeeda7f626b94908c4c54f47027d3..6bd5fd36d28c67c927b3ad1923a71214b42f956a 100644
|
| --- a/chrome/browser/chromeos/login/existing_user_controller.cc
|
| +++ b/chrome/browser/chromeos/login/existing_user_controller.cc
|
| @@ -696,7 +696,6 @@ void ExistingUserController::OnLoginSuccess(
|
| LoginUtils::Get()->PrepareProfile(username,
|
| display_email_,
|
| password,
|
| - pending_requests,
|
| using_oauth,
|
| has_cookies,
|
| this);
|
| @@ -998,8 +997,11 @@ void ExistingUserController::ShowGaiaPasswordChanged(
|
| const std::string& username) {
|
| // Invalidate OAuth token, since it can't be correct after password is
|
| // changed.
|
| - UserManager::Get()->SaveUserOAuthStatus(username,
|
| - User::OAUTH_TOKEN_STATUS_INVALID);
|
| + UserManager::Get()->SaveUserOAuthStatus(
|
| + username,
|
| + CommandLine::ForCurrentProcess()->HasSwitch(switches::kForceOAuth2) ?
|
| + User::OAUTH2_TOKEN_STATUS_INVALID :
|
| + User::OAUTH1_TOKEN_STATUS_INVALID);
|
|
|
| login_display_->SetUIEnabled(true);
|
| login_display_->ShowGaiaPasswordChanged(username);
|
|
|