| 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 9c6e6f064c5c76ecab76e7c0af29097b143adec6..38ec99d4876c5776068a155030d22aec9701fe49 100644
|
| --- a/chrome/browser/content_settings/cookie_settings.cc
|
| +++ b/chrome/browser/content_settings/cookie_settings.cc
|
| @@ -8,6 +8,7 @@
|
| #include "base/prefs/pref_service.h"
|
| #include "chrome/browser/content_settings/content_settings_utils.h"
|
| #include "chrome/browser/content_settings/host_content_settings_map.h"
|
| +#include "chrome/browser/profiles/incognito_helpers.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/profiles/profile_dependency_manager.h"
|
| #include "chrome/browser/profiles/profile_keyed_service.h"
|
| @@ -72,8 +73,9 @@ void CookieSettings::Factory::RegisterUserPrefs(
|
| PrefRegistrySyncable::SYNCABLE_PREF);
|
| }
|
|
|
| -bool CookieSettings::Factory::ServiceRedirectedInIncognito() const {
|
| - return true;
|
| +content::BrowserContext* CookieSettings::Factory::GetBrowserContextToUse(
|
| + content::BrowserContext* context) const {
|
| + return chrome::GetBrowserContextRedirectedInIncognito(context);
|
| }
|
|
|
| scoped_refptr<RefcountedProfileKeyedService>
|
|
|