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

Unified Diff: chrome/browser/ui/webui/collected_cookies_ui_delegate.cc

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/webui/collected_cookies_ui_delegate.cc
diff --git a/chrome/browser/ui/webui/collected_cookies_ui_delegate.cc b/chrome/browser/ui/webui/collected_cookies_ui_delegate.cc
index 0ad2f38cb8909853b02cbfaf41dd6301183b588e..3376ac71c41609400efc54baf49af01002485f43 100644
--- a/chrome/browser/ui/webui/collected_cookies_ui_delegate.cc
+++ b/chrome/browser/ui/webui/collected_cookies_ui_delegate.cc
@@ -7,6 +7,7 @@
#include "base/message_loop.h"
#include "base/string_util.h"
#include "base/values.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/cookies_tree_model.h"
@@ -147,8 +148,8 @@ CollectedCookiesUIDelegate::CollectedCookiesUIDelegate(
TabContentsWrapper* wrapper =
TabContentsWrapper::GetCurrentWrapperForContents(tab_contents);
TabSpecificContentSettings* content_settings = wrapper->content_settings();
- HostContentSettingsMap* host_content_settings_map =
- wrapper->profile()->GetHostContentSettingsMap();
+ CookieSettings* cookie_settings =
+ CookieSettings::GetForProfile(wrapper->profile());
registrar_.Add(this, chrome::NOTIFICATION_COLLECTED_COOKIES_SHOWN,
Source<TabSpecificContentSettings>(content_settings));
@@ -159,7 +160,7 @@ CollectedCookiesUIDelegate::CollectedCookiesUIDelegate(
content_settings->GetBlockedCookiesTreeModel());
CollectedCookiesSource* source = new CollectedCookiesSource(
- host_content_settings_map->BlockThirdPartyCookies());
+ cookie_settings->ShouldBlockThirdPartyCookies());
wrapper->profile()->GetChromeURLDataManager()->AddDataSource(source);
}

Powered by Google App Engine
This is Rietveld 408576698