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

Unified Diff: content/browser/download/download_item_impl.cc

Issue 1348683003: enable download protection on CrOS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit change NULL to nullptr Created 5 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: content/browser/download/download_item_impl.cc
diff --git a/content/browser/download/download_item_impl.cc b/content/browser/download/download_item_impl.cc
index 1e5d53aef0060beec28545dbea5d5b0dc3a64969..42c0f778d27b1e9870778bf74eca8dff68291af1 100644
--- a/content/browser/download/download_item_impl.cc
+++ b/content/browser/download/download_item_impl.cc
@@ -666,7 +666,7 @@ void DownloadItemImpl::DeleteFile(const base::Callback<void(bool)>& callback) {
}
bool DownloadItemImpl::IsDangerous() const {
-#if defined(OS_WIN) || defined(OS_MACOSX)
+#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_CHROMEOS)
// TODO(noelutz): At this point only the windows views and OSX UI supports
Nathan Parker 2015/10/21 21:10:39 Comment needs updating, or removing.
// warnings based on dangerous content.
return (danger_type_ == DOWNLOAD_DANGER_TYPE_DANGEROUS_FILE ||

Powered by Google App Engine
This is Rietveld 408576698