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

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

Issue 15517005: Remove references to Profile from browser_context_keyed_service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase & style Created 7 years, 7 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 9b56e3e1e2a5a9dc25da5cdac0b525c9fea47a6d..90517580bb4ef26fa5c9a49b2adf95e97a89d998 100644
--- a/chrome/browser/signin/profile_oauth2_token_service_factory.h
+++ b/chrome/browser/signin/profile_oauth2_token_service_factory.h
@@ -14,7 +14,8 @@ class Profile;
// 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 : public ProfileKeyedServiceFactory {
+class ProfileOAuth2TokenServiceFactory
+ : public BrowserContextKeyedServiceFactory {
public:
// Returns the instance of ProfileOAuth2TokenService associated with this
// profile (creating one if none exists). Returns NULL if this profile
@@ -32,8 +33,8 @@ class ProfileOAuth2TokenServiceFactory : public ProfileKeyedServiceFactory {
ProfileOAuth2TokenServiceFactory();
virtual ~ProfileOAuth2TokenServiceFactory();
- // ProfileKeyedServiceFactory implementation.
- virtual ProfileKeyedService* BuildServiceInstanceFor(
+ // BrowserContextKeyedServiceFactory implementation.
+ virtual BrowserContextKeyedService* BuildServiceInstanceFor(
content::BrowserContext* context) const OVERRIDE;
DISALLOW_COPY_AND_ASSIGN(ProfileOAuth2TokenServiceFactory);

Powered by Google App Engine
This is Rietveld 408576698