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

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

Issue 33173005: Correctly deal with tokens for supervised users in ProfileOAuth2TokenService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 7 years, 1 month 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/signin/profile_oauth2_token_service.h
diff --git a/chrome/browser/signin/profile_oauth2_token_service.h b/chrome/browser/signin/profile_oauth2_token_service.h
index 670adb6f622fd790989b097dac5aa9d512e49986..2e732b8fa20bcb199e9717f7564ae3d9a73e1aa8 100644
--- a/chrome/browser/signin/profile_oauth2_token_service.h
+++ b/chrome/browser/signin/profile_oauth2_token_service.h
@@ -52,6 +52,13 @@ class ProfileOAuth2TokenService : public OAuth2TokenService,
// Initializes this token service with the profile.
virtual void Initialize(Profile* profile);
+ // Loads credentials from a backing persistent store to make them available
+ // after service is used between profile restarts.
+ // Usually it's not necessary to directly call this method.
+ // TODO(bauerb): Make this method private once this class initializes itself
+ // automatically.
+ void LoadCredentials();
+
// BrowserContextKeyedService implementation.
virtual void Shutdown() OVERRIDE;
@@ -147,15 +154,15 @@ class ProfileOAuth2TokenService : public OAuth2TokenService,
FRIEND_TEST_ALL_PREFIXES(ProfileOAuth2TokenServiceTest,
PersistenceLoadCredentials);
+ // When migrating an old login-scoped refresh token, this returns the account
+ // ID with which the token was associated.
+ std::string GetAccountIdForMigratingRefreshToken();
+
// WebDataServiceConsumer implementation:
virtual void OnWebDataServiceRequestDone(
WebDataServiceBase::Handle handle,
const WDTypedResult* result) OVERRIDE;
- // Loads credentials from a backing persistent store to make them available
- // after service is used between profile restarts.
- void LoadCredentials();
-
// Loads credentials into in memory stucture.
void LoadAllCredentialsIntoMemory(
const std::map<std::string, std::string>& db_tokens);

Powered by Google App Engine
This is Rietveld 408576698