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

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

Issue 11794016: Tweak comments and put in tests for ignoring safe browsing results. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 | « no previous file | content/browser/download/download_item_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 042934d69b2773850c9b81a3c04a1792c56cc669..9ff779465b48fc1d29f464bf88475486ca6e5481 100644
--- a/content/browser/download/download_item_impl.cc
+++ b/content/browser/download/download_item_impl.cc
@@ -591,15 +591,10 @@ DownloadItem::SafetyState DownloadItemImpl::GetSafetyState() const {
bool DownloadItemImpl::IsDangerous() const {
// TODO(noelutz): At this point only the windows views UI supports
// warnings based on dangerous content.
-#ifdef OS_WIN
asanka 2013/01/07 17:14:31 Why this change? The UI code for non-views doesn't
Randy Smith (Not in Mondays) 2013/01/07 20:55:59 I'd rather not have the set danger test be windows
return (danger_type_ == DOWNLOAD_DANGER_TYPE_DANGEROUS_FILE ||
danger_type_ == DOWNLOAD_DANGER_TYPE_DANGEROUS_URL ||
danger_type_ == DOWNLOAD_DANGER_TYPE_DANGEROUS_CONTENT ||
danger_type_ == DOWNLOAD_DANGER_TYPE_UNCOMMON_CONTENT);
-#else
- return (danger_type_ == DOWNLOAD_DANGER_TYPE_DANGEROUS_FILE ||
- danger_type_ == DOWNLOAD_DANGER_TYPE_DANGEROUS_URL);
-#endif
}
DownloadDangerType DownloadItemImpl::GetDangerType() const {
« no previous file with comments | « no previous file | content/browser/download/download_item_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698