commit | 24a8e7be2b87b713f711bf40a8aa5a023c9a91f0 | [log] [tgz] |
---|---|---|
author | Dana Fried <dfried@chromium.org> | Wed Jan 09 18:17:27 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Jan 09 18:17:27 2019 |
tree | b09da679bb9cedfaf5994ca90d583aec5459631c | |
parent | db29a96e938ab285182c7da5c8b4bd4a9b3c3934 [diff] |
Warn user when closing last tab during download, not after close. Creates a more general system to prompt the user when something *might* end up closing the browser. When MaybeWarnBeforeClosing() is called, all of the prompts are shown, and if any dialogs do result a callback happens when they're done. Both the existing on-close logic as well as the "we might be closing the last tab" logic use this path now. Bug: 916929,918683 Change-Id: I709bc7205ddb840023c9ca3f696ebceae9a5cee6 Reviewed-on: https://chromium-review.googlesource.com/c/1400051 Reviewed-by: Avi Drissman <avi@chromium.org> Commit-Queue: Dana Fried <dfried@chromium.org> Cr-Commit-Position: refs/heads/master@{#621224}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .