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

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

Issue 473153002: 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: rebased 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 59f7c6fe66ecffe5b6f08f66fe200f4063a26163..73c033ba5ffa591ad35ee6861064c7a3df298e92 100644
--- a/chrome/browser/chromeos/login/signin/oauth2_login_manager.h
+++ b/chrome/browser/chromeos/login/signin/oauth2_login_manager.h
@@ -150,7 +150,8 @@ class OAuth2LoginManager : public KeyedService,
// gaia::GaiaOAuthClient::Delegate overrides.
virtual void OnRefreshTokenResponse(const std::string& access_token,
int expires_in_seconds) override;
- virtual void OnGetUserEmailResponse(const std::string& user_email) override;
+ virtual void OnGetUserInfoResponse(
+ scoped_ptr<base::DictionaryValue> user_info) override;
virtual void OnOAuthError() override;
virtual void OnNetworkError(int response_code) override;
@@ -180,12 +181,15 @@ class OAuth2LoginManager : public KeyedService,
// 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, GetAccountIdOfRefreshToken will be called to
+ // account id is not present, GetAccountInfoOfRefreshToken will be called to
// retrieve the associated account id.
bartfab (slow) 2014/10/14 17:12:37 Nit: s/id/info/
Roger Tawa OOO till Jul 10th 2014/10/16 02:39:31 Done.
void StoreOAuth2Token();
- // Get the account id corresponding to the specified refresh token.
- void GetAccountIdOfRefreshToken(const std::string& refresh_token);
+ // 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);
// Attempts to fetch OAuth2 tokens by using pre-authenticated cookie jar from
// provided |auth_profile|.
@@ -230,7 +234,7 @@ class OAuth2LoginManager : public KeyedService,
scoped_ptr<OAuth2TokenFetcher> oauth2_token_fetcher_;
scoped_ptr<OAuth2LoginVerifier> login_verifier_;
- scoped_ptr<gaia::GaiaOAuthClient> account_id_fetcher_;
+ scoped_ptr<gaia::GaiaOAuthClient> account_info_fetcher_;
// OAuth2 refresh token.
std::string refresh_token_;

Powered by Google App Engine
This is Rietveld 408576698