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

Unified Diff: chrome/browser/lifetime/application_lifetime.cc

Issue 26938003: Don't prompt to save malicious downloads on exit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated comments Created 7 years, 2 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/lifetime/application_lifetime.cc
diff --git a/chrome/browser/lifetime/application_lifetime.cc b/chrome/browser/lifetime/application_lifetime.cc
index 0693c58f08a7e48398ecbaeee2248f5ba129c73d..1c2f6f0e26c568cf77c77dcb69a8b3d67eed44af 100644
--- a/chrome/browser/lifetime/application_lifetime.cc
+++ b/chrome/browser/lifetime/application_lifetime.cc
@@ -60,7 +60,9 @@ bool AreAllBrowsersCloseable() {
return true;
// If there are any downloads active, all browsers are not closeable.
- if (DownloadService::DownloadCountAllProfiles() > 0)
+ // However, this does not block for dangerous downloads (with the
+ // exception of DOWNLOAD_FILE).
+ if (DownloadService::NonDangerousDownloadCountAllProfiles() > 0)
return false;
// Check TabsNeedBeforeUnloadFired().

Powered by Google App Engine
This is Rietveld 408576698