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

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

Issue 148513010: Eliminate ProfileOAuth2TokenService being a BCKS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Response to review Created 6 years, 10 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/signin/profile_oauth2_token_service_factory.h
diff --git a/chrome/browser/signin/profile_oauth2_token_service_factory.h b/chrome/browser/signin/profile_oauth2_token_service_factory.h
index a5204786b52c13771f2173da9dd34990317f2480..ab58937b3f5325808dab9ab457fe83e0b91b7d39 100644
--- a/chrome/browser/signin/profile_oauth2_token_service_factory.h
+++ b/chrome/browser/signin/profile_oauth2_token_service_factory.h
@@ -17,7 +17,13 @@ class AndroidProfileOAuth2TokenService;
class MutableProfileOAuth2TokenService;
#endif
-// Singleton that owns all ProfileOAuth2TokenServices and associates them with
+// A wrapper of ProfileOAuth2TokenService so we can use it as a BCKS.
+class ProfileOAuth2TokenServiceWrapper : public BrowserContextKeyedService {
+ public:
+ virtual ProfileOAuth2TokenService* GetProfileOAuth2TokenService() = 0;
+};
+
+/// Singleton that owns all ProfileOAuth2TokenServices and associates them with
// Profiles. Listens for the Profile's destruction notification and cleans up
// the associated ProfileOAuth2TokenService.
class ProfileOAuth2TokenServiceFactory
@@ -46,6 +52,7 @@ class ProfileOAuth2TokenServiceFactory
private:
friend struct DefaultSingletonTraits<ProfileOAuth2TokenServiceFactory>;
+ friend class ProfileOAuth2TokenServiceWrapperImpl;
#if defined(OS_ANDROID)
typedef AndroidProfileOAuth2TokenService PlatformSpecificOAuth2TokenService;
« no previous file with comments | « chrome/browser/signin/profile_oauth2_token_service.h ('k') | chrome/browser/signin/profile_oauth2_token_service_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698