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

Unified Diff: chrome/browser/chromeos/login/signin/oauth2_login_manager.cc

Issue 398753004: [cros] Move User class to user_manager component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 5 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/signin/oauth2_login_manager.cc
diff --git a/chrome/browser/chromeos/login/signin/oauth2_login_manager.cc b/chrome/browser/chromeos/login/signin/oauth2_login_manager.cc
index 451c0ec20be4657d1c3105211ba782de45d3dd70..d6f5c921d9ef57346cf7b8eadc3ec3972bb7aac3 100644
--- a/chrome/browser/chromeos/login/signin/oauth2_login_manager.cc
+++ b/chrome/browser/chromeos/login/signin/oauth2_login_manager.cc
@@ -109,8 +109,8 @@ void OAuth2LoginManager::RestoreSessionFromSavedTokens() {
// and OnRefreshTokenAvailable is not called. Flagging it here would
// cause user to go through Gaia in next login to obtain a new refresh
// token.
- UserManager::Get()->SaveUserOAuthStatus(primary_account_id,
- User::OAUTH_TOKEN_STATUS_UNKNOWN);
+ UserManager::Get()->SaveUserOAuthStatus(
+ primary_account_id, user_manager::User::OAUTH_TOKEN_STATUS_UNKNOWN);
token_service->LoadCredentials(primary_account_id);
}
@@ -145,8 +145,8 @@ void OAuth2LoginManager::OnRefreshTokenAvailable(
// Only restore session cookies for the primary account in the profile.
if (GetPrimaryAccountId() == account_id) {
// Token is loaded. Undo the flagging before token loading.
- UserManager::Get()->SaveUserOAuthStatus(account_id,
- User::OAUTH2_TOKEN_STATUS_VALID);
+ UserManager::Get()->SaveUserOAuthStatus(
+ account_id, user_manager::User::OAUTH2_TOKEN_STATUS_VALID);
VerifySessionCookies();
}
}

Powered by Google App Engine
This is Rietveld 408576698