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

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: Removed unneeded code 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..da12a425f796072e5f1a9eba8ec56f6bf57b4f6e 100644
--- a/chrome/browser/lifetime/application_lifetime.cc
+++ b/chrome/browser/lifetime/application_lifetime.cc
@@ -60,7 +60,8 @@ 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 malicious downloads.
+ if (DownloadService::NonMaliciousDownloadCountAllProfiles() > 0)
return false;
// Check TabsNeedBeforeUnloadFired().
« no previous file with comments | « chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc ('k') | chrome/browser/lifetime/browser_close_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698