diff options
author | paul@chromium.org <paul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-04 23:12:20 +0000 |
---|---|---|
committer | paul@chromium.org <paul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-04 23:12:20 +0000 |
commit | a3a26e612baf4993203949d91243b5ae03ea815b (patch) | |
tree | 3266f38730896bbbacdad4faa0ca9739b4bed53e /chrome/browser/views/download_shelf_view.cc | |
parent | 46878fb99cebcc06936428a4cf04586734856fe0 (diff) | |
download | chromium_src-a3a26e612baf4993203949d91243b5ae03ea815b.zip chromium_src-a3a26e612baf4993203949d91243b5ae03ea815b.tar.gz chromium_src-a3a26e612baf4993203949d91243b5ae03ea815b.tar.bz2 |
Fix for closing the download shelf with multiple tabs open.
Make sure that the browser window is informed of the download
shelf visibility status at the end of the show / hide animation.
BUG=13369
Review URL: http://codereview.chromium.org/118278
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17690 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 | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/chrome/browser/views/download_shelf_view.cc b/chrome/browser/views/download_shelf_view.cc index d651548..be13d68 100644 --- a/chrome/browser/views/download_shelf_view.cc +++ b/chrome/browser/views/download_shelf_view.cc @@ -181,10 +181,8 @@ void DownloadShelfView::AnimationProgressed(const Animation *animation) { } void DownloadShelfView::AnimationEnded(const Animation *animation) { - if (animation == shelf_animation_.get()) { - if (download_views_.empty()) - parent_->SetDownloadShelfVisible(shelf_animation_->IsShowing()); - } + if (animation == shelf_animation_.get()) + parent_->SetDownloadShelfVisible(shelf_animation_->IsShowing()); } void DownloadShelfView::Layout() { |