summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/download_shelf_view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/views/download_shelf_view.cc')
-rw-r--r--chrome/browser/views/download_shelf_view.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/views/download_shelf_view.cc b/chrome/browser/views/download_shelf_view.cc
index cb5ef66..f21ef01 100644
--- a/chrome/browser/views/download_shelf_view.cc
+++ b/chrome/browser/views/download_shelf_view.cc
@@ -111,6 +111,8 @@ void DownloadShelfView::Init() {
}
void DownloadShelfView::AddDownloadView(View* view) {
+ shelf_animation_->Show();
+
DCHECK(view);
download_views_.push_back(view);
AddChildView(view);
@@ -128,8 +130,6 @@ void DownloadShelfView::ChangeTabContents(TabContents* old_contents,
}
void DownloadShelfView::AddDownload(DownloadItem* download) {
- shelf_animation_->Show();
-
DownloadItemView* view = new DownloadItemView(
download, this, new DownloadItemModel(download));
AddDownloadView(view);
@@ -269,3 +269,4 @@ void DownloadShelfView::LinkActivated(views::Link* source, int event_flags) {
void DownloadShelfView::ButtonPressed(views::BaseButton* button) {
shelf_animation_->Hide();
}
+