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

Unified Diff: chrome/browser/download/chrome_download_manager_delegate.cc

Issue 19863005: Warn users about potentially unwanted downloads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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/download/chrome_download_manager_delegate.cc
diff --git a/chrome/browser/download/chrome_download_manager_delegate.cc b/chrome/browser/download/chrome_download_manager_delegate.cc
index 733134927b430bbdffcbc1ff18167b8746db0fd7..5c414e3390d4741efa73a91506bfd5b11517b6af 100644
--- a/chrome/browser/download/chrome_download_manager_delegate.cc
+++ b/chrome/browser/download/chrome_download_manager_delegate.cc
@@ -541,6 +541,10 @@ void ChromeDownloadManagerDelegate::CheckClientDownloadDone(
item->OnContentCheckCompleted(
content::DOWNLOAD_DANGER_TYPE_DANGEROUS_HOST);
break;
+ case DownloadProtectionService::POTENTIALLY_UNWANTED:
benjhayden 2013/07/22 20:16:19 Maybe collapse these cases with item->OnContentChe
asanka 2013/07/23 15:10:36 Done.
+ item->OnContentCheckCompleted(
+ content::DOWNLOAD_DANGER_TYPE_POTENTIALLY_UNWANTED);
+ break;
}
}

Powered by Google App Engine
This is Rietveld 408576698