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

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

Issue 1429523002: Safebrowsing check file extensions that open in IE. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: histograms, kDownloadFileTypes 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
« no previous file with comments | « chrome/common/safe_browsing/download_protection_util.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/download_stats.cc
diff --git a/content/browser/download/download_stats.cc b/content/browser/download/download_stats.cc
index 45772ede2c3e5d119e0a2327bc68d890efc15f29..b7ddeea4775ddbbb6a053a74c4da70e6723c3c46 100644
--- a/content/browser/download/download_stats.cc
+++ b/content/browser/download/download_stats.cc
@@ -213,6 +213,24 @@ const base::FilePath::CharType* kDangerousFileTypes[] = {
FILE_PATH_LITERAL(".gadget"),
FILE_PATH_LITERAL(".efi"),
FILE_PATH_LITERAL(".fon"),
+ FILE_PATH_LITERAL(".partial"),
+ FILE_PATH_LITERAL(".svg"),
+ FILE_PATH_LITERAL(".xml"),
+ FILE_PATH_LITERAL(".xrm_ms"),
+ FILE_PATH_LITERAL(".xsl"),
+ FILE_PATH_LITERAL(".action"),
+ FILE_PATH_LITERAL(".bin"),
+ FILE_PATH_LITERAL(".inx"),
+ FILE_PATH_LITERAL(".ipa"),
+ FILE_PATH_LITERAL(".isu"),
+ FILE_PATH_LITERAL(".job"),
+ FILE_PATH_LITERAL(".out"),
+ FILE_PATH_LITERAL(".pad"),
+ FILE_PATH_LITERAL(".paf"),
+ FILE_PATH_LITERAL(".rgs"),
+ FILE_PATH_LITERAL(".u3p"),
+ FILE_PATH_LITERAL(".vbscript"),
+ FILE_PATH_LITERAL(".workflow"),
};
// Maps extensions to their matching UMA histogram int value.
« no previous file with comments | « chrome/common/safe_browsing/download_protection_util.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698