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

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: 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/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..a32a186e7efcc1f952a2d7144d488c9d0190d73e 100644
--- a/chrome/browser/ui/cocoa/content_settings/collected_cookies_mac.mm
+++ b/chrome/browser/ui/cocoa/content_settings/collected_cookies_mac.mm
@@ -8,6 +8,7 @@
#import "base/mac/mac_util.h"
#include "base/sys_string_conversions.h"
+#include "chrome/browser/content_settings/cookie_settings.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"
@@ -187,7 +188,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

Powered by Google App Engine
This is Rietveld 408576698