[Mac] Cancel downloads when quitting with apps open.
When the user tries to quit Chrome and there are both pending downloads
and open packaged apps, we first prompt whether to cancel downloads or
cancel quitting Chrome. If the user chooses to cancel downloads, we
close all browser windows but leave Chrome running to serve apps.
If the user tries to quit again,
BrowserCloseManager::ConfirmCloseWithPendingDownloads crashes
because there are no browsers with which to show a prompt.
This CL skips ConfirmCloseWithPendingDownloads on Mac since
app_controller_mac already prompts about this in
shouldQuitWithInProgressDownloads.
In the above case, downloads should also be cancelled to be consistent with
the user's choice, and the concept of the browser side of Chrome having
quit.
TEST=See bug.
BUG=491106
Review URL: https://codereview.chromium.org/1148953007
Cr-Commit-Position: refs/heads/master@{#331929}
3 files changed