summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/gtk/collected_cookies_gtk.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/gtk/collected_cookies_gtk.cc')
-rw-r--r--chrome/browser/ui/gtk/collected_cookies_gtk.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/chrome/browser/ui/gtk/collected_cookies_gtk.cc b/chrome/browser/ui/gtk/collected_cookies_gtk.cc
index 1d2fbe8..c622ffa 100644
--- a/chrome/browser/ui/gtk/collected_cookies_gtk.cc
+++ b/chrome/browser/ui/gtk/collected_cookies_gtk.cc
@@ -460,10 +460,8 @@ void CollectedCookiesGtk::Observe(int type,
void CollectedCookiesGtk::OnClose(GtkWidget* close_button) {
if (status_changed_) {
- InfoBarService* infobar_service =
- InfoBarService::FromWebContents(web_contents_);
- infobar_service->AddInfoBar(
- new CollectedCookiesInfoBarDelegate(infobar_service));
+ CollectedCookiesInfoBarDelegate::Create(
+ InfoBarService::FromWebContents(web_contents_));
}
window_->CloseWebContentsModalDialog();
}