| 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..1620dc714e3d77aa498bd16c543dbed83d19c8e9 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,20 @@ 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;
|
| }
|
|
|
|
|