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

Unified Diff: chrome/common/safe_browsing/download_protection_util.cc

Issue 1577533002: Add download pings for: .rels, .msg, .eml. Add UMA for .rtf. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « chrome/browser/download/download_extensions.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: chrome/common/safe_browsing/download_protection_util.cc
diff --git a/chrome/common/safe_browsing/download_protection_util.cc b/chrome/common/safe_browsing/download_protection_util.cc
index 1538f120c835ef297113c7631ba310e36a6133bf..05b769a66ad520f1eb57435aa1700fadd1af55d9 100644
--- a/chrome/common/safe_browsing/download_protection_util.cc
+++ b/chrome/common/safe_browsing/download_protection_util.cc
@@ -262,6 +262,10 @@ enum SBClientDownloadExtensions {
EXTENSION_XXE,
EXTENSION_ZIPX,
EXTENSION_ZPAQ,
+ EXTENSION_RELS,
+ EXTENSION_MSG,
+ EXTENSION_EML,
+ EXTENSION_RTF,
// New values go above this one.
EXTENSION_MAX
@@ -319,6 +323,7 @@ const SafeBrowsingFiletype kSafeBrowsingFileTypes[] = {
{FILE_PATH_LITERAL(".dmg"), EXTENSION_DMG, true, false},
{FILE_PATH_LITERAL(".drv"), EXTENSION_DRV, true, false},
{FILE_PATH_LITERAL(".efi"), EXTENSION_EFI, true, false},
+ {FILE_PATH_LITERAL(".eml"), EXTENSION_EML, true, false},
{FILE_PATH_LITERAL(".exe"), EXTENSION_EXE, true, false},
{FILE_PATH_LITERAL(".fat"), EXTENSION_FAT, true, true},
{FILE_PATH_LITERAL(".fon"), EXTENSION_FON, true, false},
@@ -378,6 +383,7 @@ const SafeBrowsingFiletype kSafeBrowsingFileTypes[] = {
{FILE_PATH_LITERAL(".mmc"), EXTENSION_MMC, true, false},
{FILE_PATH_LITERAL(".mof"), EXTENSION_MOF, true, false},
{FILE_PATH_LITERAL(".msc"), EXTENSION_MSC, true, false},
+ {FILE_PATH_LITERAL(".msg"), EXTENSION_MSG, true, false},
{FILE_PATH_LITERAL(".msh"), EXTENSION_MSH, true, false},
{FILE_PATH_LITERAL(".msh1"), EXTENSION_MSH1, true, false},
{FILE_PATH_LITERAL(".msh1xml"), EXTENSION_MSH1XML, true, false},
@@ -452,9 +458,11 @@ const SafeBrowsingFiletype kSafeBrowsingFileTypes[] = {
{FILE_PATH_LITERAL(".r29"), EXTENSION_R29, true, true},
{FILE_PATH_LITERAL(".rar"), EXTENSION_RAR, true, true},
{FILE_PATH_LITERAL(".rb"), EXTENSION_RB, true, false},
+ {FILE_PATH_LITERAL(".rels"), EXTENSION_RELS, true, false},
{FILE_PATH_LITERAL(".reg"), EXTENSION_REG, true, false},
{FILE_PATH_LITERAL(".rgs"), EXTENSION_RGS, false, false}, // UMA only.
{FILE_PATH_LITERAL(".rpm"), EXTENSION_RPM, true, false},
+ {FILE_PATH_LITERAL(".rtf"), EXTENSION_RTF, false, false}, // UMA only.
{FILE_PATH_LITERAL(".scf"), EXTENSION_SCF, true, false},
{FILE_PATH_LITERAL(".scr"), EXTENSION_SCR, true, false},
{FILE_PATH_LITERAL(".sct"), EXTENSION_SCT, true, false},
« no previous file with comments | « chrome/browser/download/download_extensions.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698