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

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

Issue 11649055: OAuth2 sign-in flow for ChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clang fix 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/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 4fbd9303e30ee1e75e8e72b6ce7fed9c055e331a..9137666a4eca2655cee7f50bb3c64c5352ac0050 100644
--- a/chrome/browser/chromeos/login/existing_user_controller.cc
+++ b/chrome/browser/chromeos/login/existing_user_controller.cc
@@ -686,7 +686,6 @@ void ExistingUserController::OnLoginSuccess(
LoginUtils::Get()->PrepareProfile(username,
display_email_,
password,
- pending_requests,
using_oauth,
has_cookies,
this);
@@ -988,8 +987,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::kForceOAuth1) ?
+ User::OAUTH1_TOKEN_STATUS_INVALID :
+ User::OAUTH2_TOKEN_STATUS_INVALID);
login_display_->SetUIEnabled(true);
login_display_->ShowGaiaPasswordChanged(username);

Powered by Google App Engine
This is Rietveld 408576698