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

Unified Diff: chrome/browser/net/cookie_policy_browsertest.cc

Issue 7713034: HostContentSettingsMap refactoring. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Code review comments. Threading fixes. Mac + win fixes. Created 9 years, 4 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/net/cookie_policy_browsertest.cc
diff --git a/chrome/browser/net/cookie_policy_browsertest.cc b/chrome/browser/net/cookie_policy_browsertest.cc
index 251ae6907db4dddcc26c761488cabe734889e3b7..3b8ab8c5c3a2bb73a1aef60644c1bd07169b2790 100644
--- a/chrome/browser/net/cookie_policy_browsertest.cc
+++ b/chrome/browser/net/cookie_policy_browsertest.cc
@@ -4,6 +4,7 @@
#include "base/task.h"
#include "base/synchronization/waitable_event.h"
+#include "chrome/browser/content_settings/cookie_settings.h"
#include "chrome/browser/content_settings/host_content_settings_map.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
@@ -70,7 +71,7 @@ class CookiePolicyBrowserTest : public InProcessBrowserTest {
IN_PROC_BROWSER_TEST_F(CookiePolicyBrowserTest, AllowFirstPartyCookies) {
ASSERT_TRUE(test_server()->Start());
- browser()->profile()->GetHostContentSettingsMap()->
+ CookieSettings::GetForProfile(browser()->profile())->
SetBlockThirdPartyCookies(true);
GURL url(test_server()->GetURL("set-cookie?cookie1"));
@@ -90,7 +91,7 @@ IN_PROC_BROWSER_TEST_F(CookiePolicyBrowserTest,
AllowFirstPartyCookiesRedirect) {
ASSERT_TRUE(test_server()->Start());
- browser()->profile()->GetHostContentSettingsMap()->
+ CookieSettings::GetForProfile(browser()->profile())->
SetBlockThirdPartyCookies(true);
GURL url(test_server()->GetURL("server-redirect?"));

Powered by Google App Engine
This is Rietveld 408576698