| Index: chrome/browser/managed_mode/managed_user_service_factory.cc
|
| diff --git a/chrome/browser/managed_mode/managed_user_service_factory.cc b/chrome/browser/managed_mode/managed_user_service_factory.cc
|
| index 2f401fa5143a193b3c9bf9edadf5ae1a320b6923..0e613d5b05fa9d72a5c7f1c5579e0d2248edd498 100644
|
| --- a/chrome/browser/managed_mode/managed_user_service_factory.cc
|
| +++ b/chrome/browser/managed_mode/managed_user_service_factory.cc
|
| @@ -13,7 +13,7 @@
|
| // static
|
| ManagedUserService* ManagedUserServiceFactory::GetForProfile(Profile* profile) {
|
| return static_cast<ManagedUserService*>(
|
| - GetInstance()->GetServiceForProfile(profile, true));
|
| + GetInstance()->GetServiceForBrowserContext(profile, true));
|
| }
|
|
|
| // static
|
| @@ -22,14 +22,15 @@ ManagedUserServiceFactory* ManagedUserServiceFactory::GetInstance() {
|
| }
|
|
|
| // static
|
| -ProfileKeyedService* ManagedUserServiceFactory::BuildInstanceFor(
|
| +BrowserContextKeyedService* ManagedUserServiceFactory::BuildInstanceFor(
|
| Profile* profile) {
|
| return new ManagedUserService(profile);
|
| }
|
|
|
| ManagedUserServiceFactory::ManagedUserServiceFactory()
|
| - : ProfileKeyedServiceFactory("ManagedUserService",
|
| - ProfileDependencyManager::GetInstance()) {
|
| + : BrowserContextKeyedServiceFactory(
|
| + "ManagedUserService",
|
| + BrowserContextDependencyManager::GetInstance()) {
|
| DependsOn(extensions::ExtensionSystemFactory::GetInstance());
|
| }
|
|
|
| @@ -40,7 +41,7 @@ content::BrowserContext* ManagedUserServiceFactory::GetBrowserContextToUse(
|
| return chrome::GetBrowserContextRedirectedInIncognito(context);
|
| }
|
|
|
| -ProfileKeyedService* ManagedUserServiceFactory::BuildServiceInstanceFor(
|
| +BrowserContextKeyedService* ManagedUserServiceFactory::BuildServiceInstanceFor(
|
| content::BrowserContext* profile) const {
|
| return BuildInstanceFor(static_cast<Profile*>(profile));
|
| }
|
|
|