| 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);
|
| }
|
|
|
|
|