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

Unified Diff: chrome/browser/ui/views/infobars/infobar_container_view.cc

Issue 7046080: When replacing an infobar, maintain the old infobar's position. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 6 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 | « chrome/browser/ui/views/infobars/infobar_container_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/infobars/infobar_container_view.cc
===================================================================
--- chrome/browser/ui/views/infobars/infobar_container_view.cc (revision 88583)
+++ chrome/browser/ui/views/infobars/infobar_container_view.cc (working copy)
@@ -44,8 +44,10 @@
state->name = l10n_util::GetStringUTF16(IDS_ACCNAME_INFOBAR_CONTAINER);
}
-void InfoBarContainerView::PlatformSpecificAddInfoBar(InfoBar* infobar) {
- AddChildView(static_cast<InfoBarView*>(infobar));
+void InfoBarContainerView::PlatformSpecificAddInfoBar(InfoBar* infobar,
+ size_t position) {
+ AddChildViewAt(static_cast<InfoBarView*>(infobar),
+ static_cast<int>(position));
}
void InfoBarContainerView::PlatformSpecificRemoveInfoBar(InfoBar* infobar) {
« no previous file with comments | « chrome/browser/ui/views/infobars/infobar_container_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698