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

Unified Diff: chrome/browser/signin/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/token_service_factory.cc
diff --git a/chrome/browser/signin/token_service_factory.cc b/chrome/browser/signin/token_service_factory.cc
index 1e326f5b1dd3594f35b27fa388495c70c3d4d84b..92fb5159020a14c0082c02338980756509908e8c 100644
--- a/chrome/browser/signin/token_service_factory.cc
+++ b/chrome/browser/signin/token_service_factory.cc
@@ -9,8 +9,9 @@
#include "components/browser_context_keyed_service/browser_context_dependency_manager.h"
TokenServiceFactory::TokenServiceFactory()
- : ProfileKeyedServiceFactory("TokenService",
- ProfileDependencyManager::GetInstance()) {
+ : BrowserContextKeyedServiceFactory(
+ "TokenService",
+ BrowserContextDependencyManager::GetInstance()) {
DependsOn(WebDataServiceFactory::GetInstance());
}
@@ -19,7 +20,7 @@ TokenServiceFactory::~TokenServiceFactory() {}
// static
TokenService* TokenServiceFactory::GetForProfile(Profile* profile) {
return static_cast<TokenService*>(
- GetInstance()->GetServiceForProfile(profile, true));
+ GetInstance()->GetServiceForBrowserContext(profile, true));
}
// static
@@ -27,7 +28,7 @@ TokenServiceFactory* TokenServiceFactory::GetInstance() {
return Singleton<TokenServiceFactory>::get();
}
-ProfileKeyedService* TokenServiceFactory::BuildServiceInstanceFor(
+BrowserContextKeyedService* TokenServiceFactory::BuildServiceInstanceFor(
content::BrowserContext* profile) const {
return new TokenService();
}

Powered by Google App Engine
This is Rietveld 408576698