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

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

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.cc
diff --git a/chrome/browser/signin/profile_oauth2_token_service_factory.cc b/chrome/browser/signin/profile_oauth2_token_service_factory.cc
index f6ce72450fa56ba54eefb50c06dc27e183b1454b..97687dc2afaa69e598beadb2130b18837076cc45 100644
--- a/chrome/browser/signin/profile_oauth2_token_service_factory.cc
+++ b/chrome/browser/signin/profile_oauth2_token_service_factory.cc
@@ -15,8 +15,9 @@
#endif
ProfileOAuth2TokenServiceFactory::ProfileOAuth2TokenServiceFactory()
- : ProfileKeyedServiceFactory("ProfileOAuth2TokenService",
- ProfileDependencyManager::GetInstance()) {
+ : BrowserContextKeyedServiceFactory(
+ "ProfileOAuth2TokenService",
+ BrowserContextDependencyManager::GetInstance()) {
DependsOn(SigninManagerFactory::GetInstance());
DependsOn(TokenServiceFactory::GetInstance());
}
@@ -28,7 +29,7 @@ ProfileOAuth2TokenServiceFactory::~ProfileOAuth2TokenServiceFactory() {
ProfileOAuth2TokenService* ProfileOAuth2TokenServiceFactory::GetForProfile(
Profile* profile) {
return static_cast<ProfileOAuth2TokenService*>(
- GetInstance()->GetServiceForProfile(profile, true));
+ GetInstance()->GetServiceForBrowserContext(profile, true));
}
// static
@@ -37,7 +38,8 @@ ProfileOAuth2TokenServiceFactory*
return Singleton<ProfileOAuth2TokenServiceFactory>::get();
}
-ProfileKeyedService* ProfileOAuth2TokenServiceFactory::BuildServiceInstanceFor(
+BrowserContextKeyedService*
+ProfileOAuth2TokenServiceFactory::BuildServiceInstanceFor(
content::BrowserContext* context) const {
Profile* profile = static_cast<Profile*>(context);
ProfileOAuth2TokenService* service;

Powered by Google App Engine
This is Rietveld 408576698