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

Unified Diff: chrome/browser/signin/profile_oauth2_token_service.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.h
diff --git a/chrome/browser/signin/profile_oauth2_token_service.h b/chrome/browser/signin/profile_oauth2_token_service.h
index ce2ce4d8ceeb9e54c05eeebdf951028d8a51bb51..66e63b5ca9d31d60640066983044c01add97934c 100644
--- a/chrome/browser/signin/profile_oauth2_token_service.h
+++ b/chrome/browser/signin/profile_oauth2_token_service.h
@@ -21,7 +21,7 @@ class GoogleServiceAuthError;
class Profile;
class SigninGlobalError;
-// ProfileOAuth2TokenService is a BrowserContextKeyedService that retrieves
+// ProfileOAuth2TokenService is a class that retrieves
// OAuth2 access tokens for a given set of scopes using the OAuth2 login
// refresh tokens.
//
@@ -35,14 +35,14 @@ class SigninGlobalError;
//
// Note: requests should be started from the UI thread. To start a
// request from other thread, please use ProfileOAuth2TokenServiceRequest.
-class ProfileOAuth2TokenService : public OAuth2TokenService,
- public BrowserContextKeyedService {
+class ProfileOAuth2TokenService : public OAuth2TokenService {
public:
+ virtual ~ProfileOAuth2TokenService();
+
// Initializes this token service with the profile.
virtual void Initialize(Profile* profile);
- // BrowserContextKeyedService implementation.
- virtual void Shutdown() OVERRIDE;
+ virtual void Shutdown();
// Gets an account id of the primary account related to the profile.
// DEPRECATED: Use SigninManagerBase::GetAuthenticatedAccountId() instead.
@@ -82,7 +82,6 @@ class ProfileOAuth2TokenService : public OAuth2TokenService,
protected:
ProfileOAuth2TokenService();
- virtual ~ProfileOAuth2TokenService();
// OAuth2TokenService overrides.
// Note: These methods are overriden so that ProfileOAuth2TokenService is a

Powered by Google App Engine
This is Rietveld 408576698