Index: chrome/browser/ui/cocoa/content_settings/collected_cookies_mac.mm |
diff --git a/chrome/browser/ui/cocoa/content_settings/collected_cookies_mac.mm b/chrome/browser/ui/cocoa/content_settings/collected_cookies_mac.mm |
index 34fa8f91bf91bf55ad133671d29cbf4db844a31f..505e7cb06dc21bf99994d0a37862a83e0eff97c5 100644 |
--- a/chrome/browser/ui/cocoa/content_settings/collected_cookies_mac.mm |
+++ b/chrome/browser/ui/cocoa/content_settings/collected_cookies_mac.mm |
@@ -8,7 +8,7 @@ |
#import "base/mac/mac_util.h" |
#include "base/sys_string_conversions.h" |
-#include "chrome/browser/content_settings/host_content_settings_map.h" |
+#include "chrome/browser/content_settings/cookie_settings.h" |
#include "chrome/browser/content_settings/tab_specific_content_settings.h" |
#include "chrome/browser/profiles/profile.h" |
#include "chrome/browser/ui/cocoa/constrained_window_mac.h" |
@@ -187,7 +187,9 @@ void CollectedCookiesMac::OnSheetDidEnd(NSWindow* sheet) { |
// Change the label of the blocked cookies part if necessary. |
Profile* profile = |
Profile::FromBrowserContext(tabContents_->browser_context()); |
- if (profile->GetHostContentSettingsMap()->BlockThirdPartyCookies()) { |
+ CookieSettings* cookie_settings = |
+ CookieSettings::GetForProfile(profile); |
+ if (cookie_settings->ShouldBlockThirdPartyCookies()) { |
[blockedCookiesText_ setStringValue:l10n_util::GetNSString( |
IDS_COLLECTED_COOKIES_BLOCKED_THIRD_PARTY_BLOCKING_ENABLED)]; |
CGFloat textDeltaY = [GTMUILocalizerAndLayoutTweaker |
@@ -247,7 +249,7 @@ void CollectedCookiesMac::OnSheetDidEnd(NSWindow* sheet) { |
Profile::FromBrowserContext(tabContents_->browser_context()); |
CookieTreeOriginNode* origin_node = |
static_cast<CookieTreeOriginNode*>(cookie); |
- origin_node->CreateContentException(profile->GetHostContentSettingsMap(), |
+ origin_node->CreateContentException(CookieSettings::GetForProfile(profile), |
setting); |
if (!lastDomain.empty()) |
multipleDomainsChanged = YES; |