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

Unified Diff: chrome/browser/ui/gtk/infobars/infobar_container_gtk.cc

Issue 6932002: gtk/infobars: Refactor AnimateOpen/Open into a single Show() method. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/infobars/infobar_gtk.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/infobars/infobar_container_gtk.cc
diff --git a/chrome/browser/ui/gtk/infobars/infobar_container_gtk.cc b/chrome/browser/ui/gtk/infobars/infobar_container_gtk.cc
index 92cad505b22c02c947efc23e8f4a4721f6d57088..45e32b8fd55576f484d648c8c7088adfa777e84c 100644
--- a/chrome/browser/ui/gtk/infobars/infobar_container_gtk.cc
+++ b/chrome/browser/ui/gtk/infobars/infobar_container_gtk.cc
@@ -182,11 +182,7 @@ void InfoBarContainerGtk::AddInfoBar(InfoBarDelegate* delegate, bool animate) {
gtk_box_pack_start(GTK_BOX(widget()), infobar->widget(),
FALSE, FALSE, 0);
- if (animate)
- infobar->AnimateOpen();
- else
- infobar->Open();
-
+ infobar->Show(animate);
ShowArrowForDelegate(delegate, animate);
}
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/infobars/infobar_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698