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

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

Issue 9703038: Profiles: Really fix refcounted services. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Forgot to save a file. >_< Created 8 years, 9 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 c8e8c8ed32a9b5765a88a53345f3c0ed690b2f17..59996efd5cf12089242e012827360027cb5dafa9 100644
--- a/chrome/browser/content_settings/cookie_settings.h
+++ b/chrome/browser/content_settings/cookie_settings.h
@@ -9,6 +9,7 @@
#include <string>
#include "base/compiler_specific.h"
+#include "base/memory/ref_counted.h"
#include "base/memory/singleton.h"
#include "base/synchronization/lock.h"
#include "chrome/browser/content_settings/host_content_settings_map.h"
@@ -117,7 +118,7 @@ class CookieSettings
// Returns the |CookieSettings| associated with the |profile|.
//
// This should only be called on the UI thread.
- static CookieSettings* GetForProfile(Profile* profile);
+ static scoped_refptr<CookieSettings> GetForProfile(Profile* profile);
static Factory* GetInstance();
@@ -130,8 +131,8 @@ class CookieSettings
// |ProfileKeyedBaseFactory| methods:
virtual void RegisterUserPrefs(PrefService* user_prefs) OVERRIDE;
virtual bool ServiceRedirectedInIncognito() OVERRIDE;
- virtual RefcountedProfileKeyedService* BuildServiceInstanceFor(
- Profile* profile) const OVERRIDE;
+ virtual scoped_refptr<RefcountedProfileKeyedService>
+ BuildServiceInstanceFor(Profile* profile) const OVERRIDE;
};
private:
« no previous file with comments | « chrome/browser/autofill/autofill_manager_unittest.cc ('k') | chrome/browser/content_settings/cookie_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698