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

Unified Diff: apps/shortcut_manager_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/shortcut_manager_factory.cc
diff --git a/apps/shortcut_manager_factory.cc b/apps/shortcut_manager_factory.cc
index 4d2b513fd926214f1240ed55200be4411acfbbfc..5aa339effd0635946b2c50f959d1a2074264743d 100644
--- a/apps/shortcut_manager_factory.cc
+++ b/apps/shortcut_manager_factory.cc
@@ -13,14 +13,14 @@ namespace apps {
// static
ShortcutManager* ShortcutManagerFactory::GetForProfile(Profile* profile) {
return static_cast<ShortcutManager*>(
- GetInstance()->GetServiceForProfile(profile, true));
+ GetInstance()->GetServiceForBrowserContext(profile, true));
}
// static
void ShortcutManagerFactory::ResetForProfile(Profile* profile) {
ShortcutManagerFactory* factory = GetInstance();
- factory->ProfileShutdown(profile);
- factory->ProfileDestroyed(profile);
+ factory->BrowserContextShutdown(profile);
+ factory->BrowserContextDestroyed(profile);
}
ShortcutManagerFactory* ShortcutManagerFactory::GetInstance() {
@@ -28,19 +28,20 @@ ShortcutManagerFactory* ShortcutManagerFactory::GetInstance() {
}
ShortcutManagerFactory::ShortcutManagerFactory()
- : ProfileKeyedServiceFactory("ShortcutManager",
- ProfileDependencyManager::GetInstance()) {
+ : BrowserContextKeyedServiceFactory(
+ "ShortcutManager",
+ BrowserContextDependencyManager::GetInstance()) {
}
ShortcutManagerFactory::~ShortcutManagerFactory() {
}
-ProfileKeyedService* ShortcutManagerFactory::BuildServiceInstanceFor(
+BrowserContextKeyedService* ShortcutManagerFactory::BuildServiceInstanceFor(
content::BrowserContext* profile) const {
return new ShortcutManager(static_cast<Profile*>(profile));
}
-bool ShortcutManagerFactory::ServiceIsCreatedWithProfile() const {
+bool ShortcutManagerFactory::ServiceIsCreatedWithBrowserContext() const {
return true;
}

Powered by Google App Engine
This is Rietveld 408576698