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

Unified Diff: chrome/browser/signin/signin_manager_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/signin_manager_factory.cc
diff --git a/chrome/browser/signin/signin_manager_factory.cc b/chrome/browser/signin/signin_manager_factory.cc
index f31bc073492c62c3cd628e80aede6b7d512d9b23..f8974cf2a670e2c0ed4e2ff3eeab61746d6ce6ed 100644
--- a/chrome/browser/signin/signin_manager_factory.cc
+++ b/chrome/browser/signin/signin_manager_factory.cc
@@ -15,8 +15,9 @@
#include "components/user_prefs/pref_registry_syncable.h"
SigninManagerFactory::SigninManagerFactory()
- : ProfileKeyedServiceFactory("SigninManager",
- ProfileDependencyManager::GetInstance()) {
+ : BrowserContextKeyedServiceFactory(
+ "SigninManager",
+ BrowserContextDependencyManager::GetInstance()) {
DependsOn(TokenServiceFactory::GetInstance());
DependsOn(GlobalErrorServiceFactory::GetInstance());
}
@@ -28,27 +29,27 @@ SigninManagerFactory::~SigninManagerFactory() {}
SigninManagerBase* SigninManagerFactory::GetForProfileIfExists(
Profile* profile) {
return static_cast<SigninManagerBase*>(
- GetInstance()->GetServiceForProfile(profile, false));
+ GetInstance()->GetServiceForBrowserContext(profile, false));
}
// static
SigninManagerBase* SigninManagerFactory::GetForProfile(
Profile* profile) {
return static_cast<SigninManagerBase*>(
- GetInstance()->GetServiceForProfile(profile, true));
+ GetInstance()->GetServiceForBrowserContext(profile, true));
}
#else
// static
SigninManager* SigninManagerFactory::GetForProfile(Profile* profile) {
return static_cast<SigninManager*>(
- GetInstance()->GetServiceForProfile(profile, true));
+ GetInstance()->GetServiceForBrowserContext(profile, true));
}
// static
SigninManager* SigninManagerFactory::GetForProfileIfExists(Profile* profile) {
return static_cast<SigninManager*>(
- GetInstance()->GetServiceForProfile(profile, false));
+ GetInstance()->GetServiceForBrowserContext(profile, false));
}
#endif
@@ -86,7 +87,7 @@ void SigninManagerFactory::RegisterPrefs(PrefRegistrySimple* registry) {
std::string());
}
-ProfileKeyedService* SigninManagerFactory::BuildServiceInstanceFor(
+BrowserContextKeyedService* SigninManagerFactory::BuildServiceInstanceFor(
content::BrowserContext* context) const {
SigninManagerBase* service = NULL;
Profile* profile = static_cast<Profile*>(context);

Powered by Google App Engine
This is Rietveld 408576698