Index: chrome/browser/gtk/infobar_container_gtk.cc |
=================================================================== |
--- chrome/browser/gtk/infobar_container_gtk.cc (revision 65711) |
+++ chrome/browser/gtk/infobar_container_gtk.cc (working copy) |
@@ -123,8 +123,8 @@ |
} else if (type == NotificationType::TAB_CONTENTS_INFOBAR_REMOVED) { |
RemoveInfoBar(Details<InfoBarDelegate>(details).ptr(), true); |
} else if (type == NotificationType::TAB_CONTENTS_INFOBAR_REPLACED) { |
- std::pair<InfoBarDelegate*, InfoBarDelegate*>* delegates = |
- Details<std::pair<InfoBarDelegate*, InfoBarDelegate*> >(details).ptr(); |
+ typedef std::pair<InfoBarDelegate*, InfoBarDelegate*> Delegates; |
+ Delegates* delegates = Details<Delegates>(details).ptr(); |
Evan Stade
2010/11/11 22:39:47
nit: can you call it DelegatePair?
Peter Kasting
2010/11/11 22:47:58
Good idea. Changed typedef and variable names her
|
// By not animating the removal/addition, this appears to be a replace. |
RemoveInfoBar(delegates->first, false); |