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

Unified Diff: chrome/browser/ui/gtk/collected_cookies_gtk.cc

Issue 11644059: Change infobar creation to use a public static Create() method on the infobar delegate classes. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 11 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/gtk/collected_cookies_gtk.cc
===================================================================
--- chrome/browser/ui/gtk/collected_cookies_gtk.cc (revision 175396)
+++ chrome/browser/ui/gtk/collected_cookies_gtk.cc (working copy)
@@ -460,10 +460,8 @@
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();
}
« no previous file with comments | « chrome/browser/ui/content_settings/content_setting_bubble_model.cc ('k') | chrome/browser/ui/hung_plugin_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698