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

Unified Diff: content/public/test/download_test_observer.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
« no previous file with comments | « content/public/test/download_test_observer.h ('k') | content/public/test/mock_download_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/download_test_observer.cc
diff --git a/content/public/test/download_test_observer.cc b/content/public/test/download_test_observer.cc
index e3ba7c5062eae20ffa7a12d2894f643060b2101f..adce290c4cd295ba10cb66f24cedb0f99851eded 100644
--- a/content/public/test/download_test_observer.cc
+++ b/content/public/test/download_test_observer.cc
@@ -172,6 +172,10 @@ void DownloadTestObserver::OnDownloadUpdated(DownloadItem* download) {
case ON_DANGEROUS_DOWNLOAD_IGNORE:
break;
+ case ON_DANGEROUS_DOWNLOAD_QUIT:
+ DownloadInFinalState(download);
+ break;
+
default:
NOTREACHED();
}
« no previous file with comments | « content/public/test/download_test_observer.h ('k') | content/public/test/mock_download_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698