Index: apps/app_restore_service_factory.cc |
diff --git a/apps/app_restore_service_factory.cc b/apps/app_restore_service_factory.cc |
index 4086c7a6d8b4cb3773c817b9db38644257c63e18..b477ce82d1abbe0e83c3e90f86b0284bfa94b94f 100644 |
--- a/apps/app_restore_service_factory.cc |
+++ b/apps/app_restore_service_factory.cc |
@@ -14,14 +14,14 @@ namespace apps { |
// static |
AppRestoreService* AppRestoreServiceFactory::GetForProfile(Profile* profile) { |
return static_cast<AppRestoreService*>( |
- GetInstance()->GetServiceForProfile(profile, true)); |
+ GetInstance()->GetServiceForBrowserContext(profile, true)); |
} |
// static |
void AppRestoreServiceFactory::ResetForProfile(Profile* profile) { |
AppRestoreServiceFactory* factory = GetInstance(); |
- factory->ProfileShutdown(profile); |
- factory->ProfileDestroyed(profile); |
+ factory->BrowserContextShutdown(profile); |
+ factory->BrowserContextDestroyed(profile); |
} |
AppRestoreServiceFactory* AppRestoreServiceFactory::GetInstance() { |
@@ -29,20 +29,21 @@ AppRestoreServiceFactory* AppRestoreServiceFactory::GetInstance() { |
} |
AppRestoreServiceFactory::AppRestoreServiceFactory() |
- : ProfileKeyedServiceFactory("AppRestoreService", |
- ProfileDependencyManager::GetInstance()) { |
+ : BrowserContextKeyedServiceFactory( |
+ "AppRestoreService", |
+ BrowserContextDependencyManager::GetInstance()) { |
DependsOn(extensions::ShellWindowRegistry::Factory::GetInstance()); |
} |
AppRestoreServiceFactory::~AppRestoreServiceFactory() { |
} |
-ProfileKeyedService* AppRestoreServiceFactory::BuildServiceInstanceFor( |
+BrowserContextKeyedService* AppRestoreServiceFactory::BuildServiceInstanceFor( |
content::BrowserContext* profile) const { |
return new AppRestoreService(static_cast<Profile*>(profile)); |
} |
-bool AppRestoreServiceFactory::ServiceIsCreatedWithProfile() const { |
+bool AppRestoreServiceFactory::ServiceIsCreatedWithBrowserContext() const { |
return true; |
} |