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

Unified Diff: chrome/browser/content_settings/cookie_settings.h

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/content_settings/cookie_settings.h
diff --git a/chrome/browser/content_settings/cookie_settings.h b/chrome/browser/content_settings/cookie_settings.h
index 9b854342b97e99a852d3b132bcb493d156459457..eec000b1f1cd265626b19a01e7c7b1972277c03e 100644
--- a/chrome/browser/content_settings/cookie_settings.h
+++ b/chrome/browser/content_settings/cookie_settings.h
@@ -26,7 +26,7 @@ class Profile;
// A frontend to the cookie settings of |HostContentSettingsMap|. Handles
// cookie-specific logic such as blocking third-party cookies. Written on the UI
// thread and read on any thread. One instance per profile.
-class CookieSettings : public RefcountedProfileKeyedService {
+class CookieSettings : public RefcountedBrowserContextKeyedService {
public:
CookieSettings(
HostContentSettingsMap* host_content_settings_map,
@@ -101,7 +101,7 @@ class CookieSettings : public RefcountedProfileKeyedService {
static void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry);
- class Factory : public RefcountedProfileKeyedServiceFactory {
+ class Factory : public RefcountedBrowserContextKeyedServiceFactory {
public:
// Returns the |CookieSettings| associated with the |profile|.
//
@@ -116,12 +116,12 @@ class CookieSettings : public RefcountedProfileKeyedService {
Factory();
virtual ~Factory();
- // |ProfileKeyedBaseFactory| methods:
+ // |BrowserContextKeyedBaseFactory| methods:
virtual void RegisterUserPrefs(
user_prefs::PrefRegistrySyncable* registry) OVERRIDE;
virtual content::BrowserContext* GetBrowserContextToUse(
content::BrowserContext* context) const OVERRIDE;
- virtual scoped_refptr<RefcountedProfileKeyedService>
+ virtual scoped_refptr<RefcountedBrowserContextKeyedService>
BuildServiceInstanceFor(
content::BrowserContext* context) const OVERRIDE;
};

Powered by Google App Engine
This is Rietveld 408576698