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

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

Issue 2148483002: [Mac] Fix download shelf items (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit Created 4 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
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 0298199d9d9e8fa5006cb487f4b149ce2261cc49..278ab65ceb5e5901567065c95241c2dcdc59656d 100644
--- a/chrome/browser/ui/cocoa/download/download_item_controller.mm
+++ b/chrome/browser/ui/cocoa/download/download_item_controller.mm
@@ -284,6 +284,11 @@ class DownloadShelfContextMenuMac : public DownloadShelfContextMenu {
[progressView_ setToolTip:base::SysUTF16ToNSString(tooltip_text)];
}
+- (void)updateViews {
+ [progressView_ setNeedsDisplay:YES];
+ [[cell_ controlView] setNeedsDisplay:YES];
+}
+
- (void)clearDangerousMode {
[self setState:kNormal];
// The state change hide the dangerouse download view and is now showing the

Powered by Google App Engine
This is Rietveld 408576698