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

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: Keeping up to date with trunk. Created 9 years, 3 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 9ab974321953cec091ab9321b350eef56c7072ee..6799dce310695dd8b1ad41a4888bf4366b4a3921 100644
--- a/chrome/browser/ui/webui/collected_cookies_ui_delegate.cc
+++ b/chrome/browser/ui/webui/collected_cookies_ui_delegate.cc
@@ -17,6 +17,7 @@
#include "chrome/browser/ui/webui/cookies_tree_model_util.h"
#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/jstemplate_builder.h"
+#include "chrome/common/pref_names.h"
#include "chrome/common/url_constants.h"
#include "content/browser/tab_contents/tab_contents.h"
#include "content/common/notification_service.h"
@@ -144,8 +145,7 @@ CollectedCookiesUIDelegate::CollectedCookiesUIDelegate(
: wrapper_(wrapper),
closed_(false) {
TabSpecificContentSettings* content_settings = wrapper->content_settings();
- HostContentSettingsMap* host_content_settings_map =
- wrapper->profile()->GetHostContentSettingsMap();
+ PrefService* prefs = wrapper->profile()->GetPrefs();
registrar_.Add(this, chrome::NOTIFICATION_COLLECTED_COOKIES_SHOWN,
Source<TabSpecificContentSettings>(content_settings));
@@ -156,7 +156,7 @@ CollectedCookiesUIDelegate::CollectedCookiesUIDelegate(
content_settings->GetBlockedCookiesTreeModel());
CollectedCookiesSource* source = new CollectedCookiesSource(
- host_content_settings_map->BlockThirdPartyCookies());
+ prefs->GetBoolean(prefs::kBlockThirdPartyCookies));
wrapper->profile()->GetChromeURLDataManager()->AddDataSource(source);
}

Powered by Google App Engine
This is Rietveld 408576698