From f1484c5242850142011c4db4572b9b742f6b56f5 Mon Sep 17 00:00:00 2001 From: "phajdan.jr@chromium.org" Date: Wed, 22 May 2013 23:25:44 +0000 Subject: Remove references to Profile from browser_context_keyed_service. BUG=227219 R=joi@chromium.org Review URL: https://codereview.chromium.org/15517005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201634 0039d316-1c4b-4281-b951-d872f2087c98 --- apps/app_restore_service_factory.cc | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'apps/app_restore_service_factory.cc') diff --git a/apps/app_restore_service_factory.cc b/apps/app_restore_service_factory.cc index 4086c7a..b477ce8 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( - 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)); } -bool AppRestoreServiceFactory::ServiceIsCreatedWithProfile() const { +bool AppRestoreServiceFactory::ServiceIsCreatedWithBrowserContext() const { return true; } -- cgit v1.1