Description[Mac] DownloadShelf should be notified when autoclosing.
If the download shelf is already hidden, then the autoclosing
logic on Mac wouldn't notify the DownloadShelf. If the shelf was
hidden temporarily due to the browser entering fullscreen mode,
then the shelf would be restored on exiting fullscreen mode.
Also fix UMA logging of download shelf closures on Mac and
assorted cleanup.
XIB changes:
* Connect close button to |-handleClose:| instead of |-hide:|.
BUG=222360
TEST=(1) Download something that is marked for opening
automatically (e.g. a browser extension).
(2) Enter fullscreen mode before download completes.
(3) Wait for download to complete.
(4) Exit fullscreen mode. The download shelf should be hidden.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=191618
Patch Set 1 : #
Total comments: 11
Patch Set 2 : Address comments. Undo re-ordering. #
Total comments: 6
Patch Set 3 : + NSTrackingInVisibleRect #Messages
Total messages: 10 (0 generated)
|