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

Unified Diff: chrome/browser/ui/cocoa/content_settings/collected_cookies_mac.mm

Issue 7713034: HostContentSettingsMap refactoring. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Tiny fixes (unnecessary #includes, win + mac 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/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;

Powered by Google App Engine
This is Rietveld 408576698