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

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

Issue 1230483005: [SafeBrowsing] Send pingbacks for additional file types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@more-dangerous-files
Patch Set: Created 5 years, 5 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: 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 3358b893b1c90445d1e1468339a25e73348677ca..dad5d8c492d498b3fa6a3417704dd89fbc04469a 100644
--- a/chrome/common/safe_browsing/download_protection_util.cc
+++ b/chrome/common/safe_browsing/download_protection_util.cc
@@ -31,8 +31,13 @@ bool IsBinaryFile(const base::FilePath& file) {
file.MatchesExtension(FILE_PATH_LITERAL(".scr")) ||
file.MatchesExtension(FILE_PATH_LITERAL(".url")) ||
file.MatchesExtension(FILE_PATH_LITERAL(".vb")) ||
+ file.MatchesExtension(FILE_PATH_LITERAL(".vbe")) ||
file.MatchesExtension(FILE_PATH_LITERAL(".vbs")) ||
+ file.MatchesExtension(FILE_PATH_LITERAL(".js")) ||
+ file.MatchesExtension(FILE_PATH_LITERAL(".jse")) ||
file.MatchesExtension(FILE_PATH_LITERAL(".website")) ||
+ file.MatchesExtension(FILE_PATH_LITERAL(".mht")) ||
+ file.MatchesExtension(FILE_PATH_LITERAL(".mhtml")) ||
// Chrome extensions and android APKs are also reported.
file.MatchesExtension(FILE_PATH_LITERAL(".crx")) ||
file.MatchesExtension(FILE_PATH_LITERAL(".apk")) ||

Powered by Google App Engine
This is Rietveld 408576698