| 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 51edd3be3ede2e5dc147b5f26ad3587baec0b264..45e622527720e0ef3622bd98c3bbda4a430c5c6f 100644
|
| --- a/chrome/browser/ui/webui/collected_cookies_ui_delegate.cc
|
| +++ b/chrome/browser/ui/webui/collected_cookies_ui_delegate.cc
|
| @@ -137,7 +137,8 @@ void CollectedCookiesSource::StartDataRequest(const std::string& path,
|
| void CollectedCookiesUIDelegate::Show(TabContents* tab_contents) {
|
| CollectedCookiesUIDelegate* delegate =
|
| new CollectedCookiesUIDelegate(tab_contents);
|
| - ConstrainedHtmlUI::CreateConstrainedHtmlDialog(tab_contents->profile(),
|
| + Profile* profile = static_cast<Profile*>(tab_contents->browser_context());
|
| + ConstrainedHtmlUI::CreateConstrainedHtmlDialog(profile,
|
| delegate,
|
| tab_contents);
|
| }
|
| @@ -146,11 +147,11 @@ CollectedCookiesUIDelegate::CollectedCookiesUIDelegate(
|
| TabContents* tab_contents)
|
| : tab_contents_(tab_contents),
|
| closed_(false) {
|
| - TabSpecificContentSettings* content_settings =
|
| - TabContentsWrapper::GetCurrentWrapperForContents(tab_contents)->
|
| - content_settings();
|
| + TabContentsWrapper* wrapper =
|
| + TabContentsWrapper::GetCurrentWrapperForContents(tab_contents);
|
| + TabSpecificContentSettings* content_settings = wrapper->content_settings();
|
| HostContentSettingsMap* host_content_settings_map =
|
| - tab_contents_->profile()->GetHostContentSettingsMap();
|
| + wrapper->profile()->GetHostContentSettingsMap();
|
|
|
| registrar_.Add(this, chrome::NOTIFICATION_COLLECTED_COOKIES_SHOWN,
|
| Source<TabSpecificContentSettings>(content_settings));
|
| @@ -162,7 +163,7 @@ CollectedCookiesUIDelegate::CollectedCookiesUIDelegate(
|
|
|
| CollectedCookiesSource* source = new CollectedCookiesSource(
|
| host_content_settings_map->BlockThirdPartyCookies());
|
| - tab_contents->profile()->GetChromeURLDataManager()->AddDataSource(source);
|
| + wrapper->profile()->GetChromeURLDataManager()->AddDataSource(source);
|
| }
|
|
|
| CollectedCookiesUIDelegate::~CollectedCookiesUIDelegate() {
|
|
|