summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/download_shelf_view.cc
diff options
context:
space:
mode:
authorglen@google.com <glen@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-07-30 22:44:50 +0000
committerglen@google.com <glen@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-07-30 22:44:50 +0000
commit019d835068b6fa120e0039bba8c5c089dfba7a88 (patch)
tree0e33dc9df604566a6fa1f547385963b9f7743df2 /chrome/browser/views/download_shelf_view.cc
parentfc9656edd36841cfb69c10539209b59872042513 (diff)
downloadchromium_src-019d835068b6fa120e0039bba8c5c089dfba7a88.zip
chromium_src-019d835068b6fa120e0039bba8c5c089dfba7a88.tar.gz
chromium_src-019d835068b6fa120e0039bba8c5c089dfba7a88.tar.bz2
Make the download arrow show and hide correctly in response to shelf visibility. This was caused by both the shelf_visible_ bool not being set by the download shelf correctly, and the tab renderer not being aware of the new state.
BUG=1300997 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@143 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/download_shelf_view.cc')
-rw-r--r--chrome/browser/views/download_shelf_view.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/chrome/browser/views/download_shelf_view.cc b/chrome/browser/views/download_shelf_view.cc
index 49f7f67..e18f3b0 100644
--- a/chrome/browser/views/download_shelf_view.cc
+++ b/chrome/browser/views/download_shelf_view.cc
@@ -223,9 +223,7 @@ void DownloadShelfView::AnimationProgressed(const Animation *animation) {
void DownloadShelfView::AnimationEnded(const Animation *animation) {
if (animation == shelf_animation_.get()) {
- if (shelf_animation_->IsShowing() == false)
- tab_contents_->SetDownloadShelfVisible(false);
- tab_contents_->ToolbarSizeChanged(false);
+ tab_contents_->SetDownloadShelfVisible(shelf_animation_->IsShowing());
}
}