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

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

Issue 14141006: [components] Switch {RefCounted}ProfileKeyedService to use BrowserContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: trybots 2 Created 7 years, 8 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.cc
diff --git a/chrome/browser/content_settings/cookie_settings.cc b/chrome/browser/content_settings/cookie_settings.cc
index e0b1ff67d1cec902d14fe21b3c2fc8b114ce48f6..9c6e6f064c5c76ecab76e7c0af29097b143adec6 100644
--- a/chrome/browser/content_settings/cookie_settings.cc
+++ b/chrome/browser/content_settings/cookie_settings.cc
@@ -77,7 +77,9 @@ bool CookieSettings::Factory::ServiceRedirectedInIncognito() const {
}
scoped_refptr<RefcountedProfileKeyedService>
-CookieSettings::Factory::BuildServiceInstanceFor(Profile* profile) const {
+CookieSettings::Factory::BuildServiceInstanceFor(
+ content::BrowserContext* context) const {
+ Profile* profile = static_cast<Profile*>(context);
return new CookieSettings(profile->GetHostContentSettingsMap(),
profile->GetPrefs());
}
« no previous file with comments | « chrome/browser/content_settings/cookie_settings.h ('k') | chrome/browser/custom_handlers/protocol_handler_registry_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698