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

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: comment 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..534ef9986c464eadf1e5cafa07d8bda36a5b8cd9 100644
--- a/chrome/browser/signin/profile_oauth2_token_service.h
+++ b/chrome/browser/signin/profile_oauth2_token_service.h
@@ -52,6 +52,11 @@ 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.
Andrew T Wilson (Slow) 2013/11/05 14:52:23 Are we moving this back down to private: once PO2T
Bernhard Bauer 2013/11/05 16:26:51 Yes, that was my plan. I added a TODO to that effe
+ void LoadCredentials();
+
// BrowserContextKeyedService implementation.
virtual void Shutdown() OVERRIDE;
@@ -147,15 +152,13 @@ class ProfileOAuth2TokenService : public OAuth2TokenService,
FRIEND_TEST_ALL_PREFIXES(ProfileOAuth2TokenServiceTest,
PersistenceLoadCredentials);
+ std::string GetAccountIdForMigratingRefreshToken();
Andrew T Wilson (Slow) 2013/11/05 14:52:23 Can you document this? It's not clear what this is
Bernhard Bauer 2013/11/05 16:26:51 Done.
+
// 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