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

Unified Diff: chrome/browser/plugins/plugin_prefs_factory.h

Issue 15517005: Remove references to Profile from browser_context_keyed_service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/plugins/plugin_prefs_factory.h
diff --git a/chrome/browser/plugins/plugin_prefs_factory.h b/chrome/browser/plugins/plugin_prefs_factory.h
index 9087935bc4094a979417a6583e1add8175a55c7e..9c1fa879fc18d7ff2f7491481cc509c73deddeaa 100644
--- a/chrome/browser/plugins/plugin_prefs_factory.h
+++ b/chrome/browser/plugins/plugin_prefs_factory.h
@@ -11,9 +11,9 @@
class PluginPrefs;
class Profile;
-class ProfileKeyedService;
+class BrowserContextKeyedService;
-class PluginPrefsFactory : public RefcountedProfileKeyedServiceFactory {
+class PluginPrefsFactory : public RefcountedBrowserContextKeyedServiceFactory {
public:
static scoped_refptr<PluginPrefs> GetPrefsForProfile(Profile* profile);
@@ -24,23 +24,23 @@ class PluginPrefsFactory : public RefcountedProfileKeyedServiceFactory {
friend struct DefaultSingletonTraits<PluginPrefsFactory>;
// Helper method for PluginPrefs::GetForTestingProfile.
- static scoped_refptr<RefcountedProfileKeyedService> CreateForTestingProfile(
+ static scoped_refptr<RefcountedBrowserContextKeyedService> CreateForTestingProfile(
content::BrowserContext* profile);
PluginPrefsFactory();
virtual ~PluginPrefsFactory();
- // RefcountedProfileKeyedServiceFactory methods:
- virtual scoped_refptr<RefcountedProfileKeyedService> BuildServiceInstanceFor(
+ // RefcountedBrowserContextKeyedServiceFactory methods:
+ virtual scoped_refptr<RefcountedBrowserContextKeyedService> BuildServiceInstanceFor(
content::BrowserContext* context) const OVERRIDE;
- // ProfileKeyedServiceFactory methods:
+ // BrowserContextKeyedServiceFactory methods:
virtual void RegisterUserPrefs(
user_prefs::PrefRegistrySyncable* registry) OVERRIDE;
virtual content::BrowserContext* GetBrowserContextToUse(
content::BrowserContext* context) const OVERRIDE;
virtual bool ServiceIsNULLWhileTesting() const OVERRIDE;
- virtual bool ServiceIsCreatedWithProfile() const OVERRIDE;
+ virtual bool ServiceIsCreatedWithBrowserContext() const OVERRIDE;
};
#endif // CHROME_BROWSER_PLUGINS_PLUGIN_PREFS_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698