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

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

Issue 13865012: Change GetProfileToUse method from Profile to content::BrowserContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: trybots 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 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>
« 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