Index: chrome/browser/managed_mode/managed_user_registration_service_factory.cc |
diff --git a/chrome/browser/managed_mode/managed_user_registration_service_factory.cc b/chrome/browser/managed_mode/managed_user_registration_service_factory.cc |
index 6142194659eab8fdad2a2bfdf669ecbcf5927b34..e5b302a24dd1ff45157bab969e5e2863aeec4172 100644 |
--- a/chrome/browser/managed_mode/managed_user_registration_service_factory.cc |
+++ b/chrome/browser/managed_mode/managed_user_registration_service_factory.cc |
@@ -11,7 +11,7 @@ |
ManagedUserRegistrationService* |
ManagedUserRegistrationServiceFactory::GetForProfile(Profile* profile) { |
return static_cast<ManagedUserRegistrationService*>( |
- GetInstance()->GetServiceForProfile(profile, true)); |
+ GetInstance()->GetServiceForBrowserContext(profile, true)); |
} |
// static |
@@ -21,20 +21,21 @@ ManagedUserRegistrationServiceFactory::GetInstance() { |
} |
// static |
-ProfileKeyedService* ManagedUserRegistrationServiceFactory::BuildInstanceFor( |
- Profile* profile) { |
+BrowserContextKeyedService* |
+ManagedUserRegistrationServiceFactory::BuildInstanceFor(Profile* profile) { |
return new ManagedUserRegistrationService(); |
} |
ManagedUserRegistrationServiceFactory::ManagedUserRegistrationServiceFactory() |
- : ProfileKeyedServiceFactory("ManagedUserRegistrationService", |
- ProfileDependencyManager::GetInstance()) { |
+ : BrowserContextKeyedServiceFactory( |
+ "ManagedUserRegistrationService", |
+ BrowserContextDependencyManager::GetInstance()) { |
} |
ManagedUserRegistrationServiceFactory:: |
~ManagedUserRegistrationServiceFactory() {} |
-ProfileKeyedService* |
+BrowserContextKeyedService* |
ManagedUserRegistrationServiceFactory::BuildServiceInstanceFor( |
content::BrowserContext* profile) const { |
return BuildInstanceFor(static_cast<Profile*>(profile)); |