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

Unified Diff: chrome/browser/signin/signin_account_id_helper.h

Issue 205703005: Componentize SigninIdAccountHelper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Response to review Created 6 years, 9 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
« no previous file with comments | « chrome/browser/signin/chrome_signin_client.cc ('k') | chrome/browser/signin/signin_account_id_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/signin/signin_account_id_helper.h
diff --git a/chrome/browser/signin/signin_account_id_helper.h b/chrome/browser/signin/signin_account_id_helper.h
index f9dc66c3b4d69969456b154912c6f6e68c185e8f..ad4b6dc8d29b888b4f02d0594cf645fa5d7077cb 100644
--- a/chrome/browser/signin/signin_account_id_helper.h
+++ b/chrome/browser/signin/signin_account_id_helper.h
@@ -11,7 +11,8 @@
class CookieSettings;
class GaiaAuthFetcher;
-class Profile;
+class ProfileOAuth2TokenService;
+class SigninClient;
// The helper class for managing the obfuscated GAIA ID of the primary
// account. It fetches the ID when user first signs into Chrome or when user
@@ -20,7 +21,9 @@ class Profile;
class SigninAccountIdHelper : public SigninManagerBase::Observer,
public OAuth2TokenService::Observer {
public:
- SigninAccountIdHelper(Profile* profile, SigninManagerBase* signin_manager);
+ SigninAccountIdHelper(SigninClient* client,
+ ProfileOAuth2TokenService* token_service,
+ SigninManagerBase* signin_manager);
virtual ~SigninAccountIdHelper();
// SigninManagerBase::Observer:
@@ -43,7 +46,8 @@ class SigninAccountIdHelper : public SigninManagerBase::Observer,
static bool disable_for_test_;
- Profile* profile_;
+ SigninClient* client_;
+ ProfileOAuth2TokenService* token_service_;
SigninManagerBase* signin_manager_;
DISALLOW_COPY_AND_ASSIGN(SigninAccountIdHelper);
« no previous file with comments | « chrome/browser/signin/chrome_signin_client.cc ('k') | chrome/browser/signin/signin_account_id_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698