diff options
author | mad@chromium.org <mad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-11 03:15:38 +0000 |
---|---|---|
committer | mad@chromium.org <mad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-11 03:15:38 +0000 |
commit | 4a3488257acbe21a9080abc0f7bf60b90fb34a57 (patch) | |
tree | 82b642e2b857062b11dc48d43dc03d753cb272e1 /chrome/browser/views/download_shelf_view.cc | |
parent | a7ad74b14339ca330c491631ba27e0aaffbe6429 (diff) | |
download | chromium_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.cc | 5 |
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(); } + |