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

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

Issue 671183002: Revert of Inline sign in extracts gaia id from HTTP header and seeds account tracker (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 2 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.h
diff --git a/chrome/browser/chromeos/login/signin/oauth2_login_manager.h b/chrome/browser/chromeos/login/signin/oauth2_login_manager.h
index ab9ccdfd5c7f59f39a4d6649f0c0abca3c8e7354..9543f5df58b0be97b50d8b17d9e54d7eefacdd43 100644
--- a/chrome/browser/chromeos/login/signin/oauth2_login_manager.h
+++ b/chrome/browser/chromeos/login/signin/oauth2_login_manager.h
@@ -149,9 +149,8 @@
// gaia::GaiaOAuthClient::Delegate overrides.
void OnRefreshTokenResponse(const std::string& access_token,
- int expires_in_seconds) override;
- void OnGetUserInfoResponse(
- scoped_ptr<base::DictionaryValue> user_info) override;
+ int expires_in_seconds) override;
+ void OnGetUserEmailResponse(const std::string& user_email) override;
void OnOAuthError() override;
void OnNetworkError(int response_code) override;
@@ -181,15 +180,12 @@
// Records |refresh_token_| to token service. The associated account id is
// assumed to be the primary account id of the user profile. If the primary
- // account id is not present, GetAccountInfoOfRefreshToken will be called to
- // retrieve the associated account info.
+ // account id is not present, GetAccountIdOfRefreshToken will be called to
+ // retrieve the associated account id.
void StoreOAuth2Token();
- // Get the account info corresponding to the specified refresh token.
- void GetAccountInfoOfRefreshToken(const std::string& refresh_token);
-
- // Update the token service and inform listeners of a new refresh token.
- void UpdateCredentials(const std::string& account_id);
+ // Get the account id corresponding to the specified refresh token.
+ void GetAccountIdOfRefreshToken(const std::string& refresh_token);
// Attempts to fetch OAuth2 tokens by using pre-authenticated cookie jar from
// provided |auth_profile|.
@@ -234,7 +230,7 @@
scoped_ptr<OAuth2TokenFetcher> oauth2_token_fetcher_;
scoped_ptr<OAuth2LoginVerifier> login_verifier_;
- scoped_ptr<gaia::GaiaOAuthClient> account_info_fetcher_;
+ scoped_ptr<gaia::GaiaOAuthClient> account_id_fetcher_;
// OAuth2 refresh token.
std::string refresh_token_;

Powered by Google App Engine
This is Rietveld 408576698