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 e28da9bdfacd15859e5e96ea64e51dfad969c45b..6783ae8e6d50f81d1d75f666f236c3f0413b51c1 100644 |
--- a/chrome/browser/content_settings/cookie_settings.cc |
+++ b/chrome/browser/content_settings/cookie_settings.cc |
@@ -74,7 +74,9 @@ void CookieSettings::Factory::RegisterProfilePrefs( |
content::BrowserContext* CookieSettings::Factory::GetBrowserContextToUse( |
content::BrowserContext* context) const { |
- return chrome::GetBrowserContextRedirectedInIncognito(context); |
+ // The incognito profile has its own content settings map. Therefore, it |
+ // should get its own CookieSettings. |
+ return chrome::GetBrowserContextOwnInstanceInIncognito(context); |
} |
scoped_refptr<RefcountedKeyedService> |