Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5671)

Unified Diff: chrome/browser/views/frame/browser_view.cc

Issue 159261: When closing the download shelf, hide the buttons of the dangerous download w... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/views/download_shelf_view.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/frame/browser_view.cc
===================================================================
--- chrome/browser/views/frame/browser_view.cc (revision 21225)
+++ chrome/browser/views/frame/browser_view.cc (working copy)
@@ -1573,7 +1573,10 @@
}
int BrowserView::LayoutDownloadShelf(int bottom) {
- if (IsDownloadShelfVisible()) {
+ // Re-layout the shelf either if it is visible or if it's close animation
+ // is currently running.
+ if (IsDownloadShelfVisible() ||
+ (download_shelf_.get() && download_shelf_->IsClosing())) {
bool visible = browser_->SupportsWindowFeature(
Browser::FEATURE_DOWNLOADSHELF);
DCHECK(download_shelf_.get());
« no previous file with comments | « chrome/browser/views/download_shelf_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698