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

Unified Diff: chrome/browser/ui/cocoa/download/download_item_controller.mm

Issue 533883002: [Mac] Re-layout download shelf when danger state of item changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add tests Created 6 years, 3 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
Index: chrome/browser/ui/cocoa/download/download_item_controller.mm
diff --git a/chrome/browser/ui/cocoa/download/download_item_controller.mm b/chrome/browser/ui/cocoa/download/download_item_controller.mm
index c839a8d030279154c2159ff356588d530d3e061b..7eaa72401ba5b91d4311f86f7f5594f4de8ce62c 100644
--- a/chrome/browser/ui/cocoa/download/download_item_controller.mm
+++ b/chrome/browser/ui/cocoa/download/download_item_controller.mm
@@ -210,9 +210,8 @@ class DownloadShelfContextMenuMac : public DownloadShelfContextMenu {
DCHECK(alertIcon);
[image_ setImage:alertIcon];
- // Grow the parent views
- WidenView([self view], labelWidthChange + buttonWidthChange);
WidenView(dangerousDownloadView_, labelWidthChange + buttonWidthChange);
+ [shelf_ layoutItems];
}
- (void)setStateFromDownload:(DownloadItemModel*)downloadModel {

Powered by Google App Engine
This is Rietveld 408576698