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

Unified Diff: chrome/browser/extensions/extension_action_manager.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: chrome/browser/extensions/extension_action_manager.cc
diff --git a/chrome/browser/extensions/extension_action_manager.cc b/chrome/browser/extensions/extension_action_manager.cc
index 21e0db75a1cecfbf418e2f2a32950fc1845703ce..4c3256005edcd961577b1a84cd076b439188d8ed 100644
--- a/chrome/browser/extensions/extension_action_manager.cc
+++ b/chrome/browser/extensions/extension_action_manager.cc
@@ -25,13 +25,13 @@ namespace extensions {
namespace {
-// ProfileKeyedServiceFactory for ExtensionActionManager.
-class ExtensionActionManagerFactory : public ProfileKeyedServiceFactory {
+// BrowserContextKeyedServiceFactory for ExtensionActionManager.
+class ExtensionActionManagerFactory : public BrowserContextKeyedServiceFactory {
public:
- // ProfileKeyedServiceFactory implementation:
+ // BrowserContextKeyedServiceFactory implementation:
static ExtensionActionManager* GetForProfile(Profile* profile) {
return static_cast<ExtensionActionManager*>(
- GetInstance()->GetServiceForProfile(profile, true));
+ GetInstance()->GetServiceForBrowserContext(profile, true));
}
static ExtensionActionManagerFactory* GetInstance();
@@ -40,11 +40,12 @@ class ExtensionActionManagerFactory : public ProfileKeyedServiceFactory {
friend struct DefaultSingletonTraits<ExtensionActionManagerFactory>;
ExtensionActionManagerFactory()
- : ProfileKeyedServiceFactory("ExtensionActionManager",
- ProfileDependencyManager::GetInstance()) {
+ : BrowserContextKeyedServiceFactory(
+ "ExtensionActionManager",
+ BrowserContextDependencyManager::GetInstance()) {
}
- virtual ProfileKeyedService* BuildServiceInstanceFor(
+ virtual BrowserContextKeyedService* BuildServiceInstanceFor(
content::BrowserContext* profile) const OVERRIDE {
return new ExtensionActionManager(static_cast<Profile*>(profile));
}

Powered by Google App Engine
This is Rietveld 408576698