Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2502)

Unified Diff: apps/app_restore_service_factory.cc

Issue 15517005: Remove references to Profile from browser_context_keyed_service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase & style Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}

Powered by Google App Engine
This is Rietveld 408576698