diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-22 23:25:44 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-22 23:25:44 +0000 |
commit | f1484c5242850142011c4db4572b9b742f6b56f5 (patch) | |
tree | 6cc51ae1fca2aea4a7f76ab9171a4247eff78a9f /chrome/browser/extensions/extension_action_manager.cc | |
parent | 59bf05a05ddf1bec2d2a4ad6d38a3338a41b7805 (diff) | |
download | chromium_src-f1484c5242850142011c4db4572b9b742f6b56f5.zip chromium_src-f1484c5242850142011c4db4572b9b742f6b56f5.tar.gz chromium_src-f1484c5242850142011c4db4572b9b742f6b56f5.tar.bz2 |
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
Diffstat (limited to 'chrome/browser/extensions/extension_action_manager.cc')
-rw-r--r-- | chrome/browser/extensions/extension_action_manager.cc | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/chrome/browser/extensions/extension_action_manager.cc b/chrome/browser/extensions/extension_action_manager.cc index 21e0db7..4c32560 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)); } |