Index: chrome/browser/content_settings/content_settings_browsertest.cc |
diff --git a/chrome/browser/content_settings/content_settings_browsertest.cc b/chrome/browser/content_settings/content_settings_browsertest.cc |
index d9927175e3de45b5e0d3ac90a1d2e151f4788412..40313b8be81b8a54ead60a76ea8037ae7f7e51a1 100644 |
--- a/chrome/browser/content_settings/content_settings_browsertest.cc |
+++ b/chrome/browser/content_settings/content_settings_browsertest.cc |
@@ -4,6 +4,8 @@ |
#include "base/stringprintf.h" |
#include "base/utf_string_conversions.h" |
+#include "chrome/browser/content_settings/cookie_settings.h" |
+#include "chrome/browser/content_settings/cookie_settings_factory.h" |
#include "chrome/browser/content_settings/host_content_settings_map.h" |
#include "chrome/browser/content_settings/tab_specific_content_settings.h" |
#include "chrome/browser/profiles/profile.h" |
@@ -19,8 +21,8 @@ IN_PROC_BROWSER_TEST_F(InProcessBrowserTest, RedirectLoopCookies) { |
GURL test_url = test_server()->GetURL("files/redirect-loop.html"); |
- browser()->profile()->GetHostContentSettingsMap()->SetDefaultContentSetting( |
- CONTENT_SETTINGS_TYPE_COOKIES, CONTENT_SETTING_BLOCK); |
+ CookieSettingsFactory::GetForProfile(browser()->profile())-> |
+ SetDefaultSetting(CONTENT_SETTING_BLOCK); |
ui_test_utils::NavigateToURL(browser(), test_url); |