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

Unified Diff: chrome/browser/safe_browsing/download_protection_service.cc

Issue 346663002: Add .torrent to SBClientDownload.DownloadExtensions histogram. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/safe_browsing/download_protection_service.cc
diff --git a/chrome/browser/safe_browsing/download_protection_service.cc b/chrome/browser/safe_browsing/download_protection_service.cc
index b95d377b70eb37a7df2835624bac89ffd9066175..256aba66fa20b296964bd1280e4f38256b758fe8 100644
--- a/chrome/browser/safe_browsing/download_protection_service.cc
+++ b/chrome/browser/safe_browsing/download_protection_service.cc
@@ -95,6 +95,7 @@ enum MaliciousExtensionType {
EXTENSION_APK,
EXTENSION_DMG,
EXTENSION_PKG,
+ EXTENSION_TORRENT,
EXTENSION_MAX,
};
@@ -121,6 +122,8 @@ MaliciousExtensionType GetExtensionType(const base::FilePath& f) {
if (f.MatchesExtension(FILE_PATH_LITERAL(".apk"))) return EXTENSION_APK;
if (f.MatchesExtension(FILE_PATH_LITERAL(".dmg"))) return EXTENSION_DMG;
if (f.MatchesExtension(FILE_PATH_LITERAL(".pkg"))) return EXTENSION_PKG;
+ if (f.MatchesExtension(FILE_PATH_LITERAL(".torrent")))
+ return EXTENSION_TORRENT;
return EXTENSION_OTHER;
}
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698