summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/download_shelf_view.cc
diff options
context:
space:
mode:
authormad@chromium.org <mad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-11 03:15:38 +0000
committermad@chromium.org <mad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-11 03:15:38 +0000
commit4a3488257acbe21a9080abc0f7bf60b90fb34a57 (patch)
tree82b642e2b857062b11dc48d43dc03d753cb272e1 /chrome/browser/views/download_shelf_view.cc
parenta7ad74b14339ca330c491631ba27e0aaffbe6429 (diff)
downloadchromium_src-4a3488257acbe21a9080abc0f7bf60b90fb34a57.zip
chromium_src-4a3488257acbe21a9080abc0f7bf60b90fb34a57.tar.gz
chromium_src-4a3488257acbe21a9080abc0f7bf60b90fb34a57.tar.bz2
Fixes 6007 (download shelf won't close) by moving the call to show the download shelf from
AddDownload to AddDownload View... git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7857 0039d316-1c4b-4281-b951-d872f2087c98
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();
}
+