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

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

Issue 1881763002: Add more mac executable extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 4 years, 8 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/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 6a1ff000b0780116fb814d82e27fe5af32e3ab56..40cb3edd9c301565694c21874c6ae1ec43f5a767 100644
--- a/chrome/browser/safe_browsing/download_protection_service.cc
+++ b/chrome/browser/safe_browsing/download_protection_service.cc
@@ -341,7 +341,31 @@ class DownloadProtectionService::CheckClientDownloadRequest
item_->GetTargetFilePath().MatchesExtension(
FILE_PATH_LITERAL(".iso")) ||
item_->GetTargetFilePath().MatchesExtension(
- FILE_PATH_LITERAL(".smi"))) {
+ FILE_PATH_LITERAL(".smi")) ||
+ item_->GetTargetFilePath().MatchesExtension(
+ FILE_PATH_LITERAL(".cdr")) ||
+ item_->GetTargetFilePath().MatchesExtension(
+ FILE_PATH_LITERAL(".dart")) ||
+ item_->GetTargetFilePath().MatchesExtension(
+ FILE_PATH_LITERAL(".dc42")) ||
+ item_->GetTargetFilePath().MatchesExtension(
+ FILE_PATH_LITERAL(".diskcopy42")) ||
+ item_->GetTargetFilePath().MatchesExtension(
+ FILE_PATH_LITERAL(".dmgpart")) ||
+ item_->GetTargetFilePath().MatchesExtension(
+ FILE_PATH_LITERAL(".dvdr")) ||
+ item_->GetTargetFilePath().MatchesExtension(
+ FILE_PATH_LITERAL(".imgpart")) ||
+ item_->GetTargetFilePath().MatchesExtension(
+ FILE_PATH_LITERAL(".ndif")) ||
+ item_->GetTargetFilePath().MatchesExtension(
+ FILE_PATH_LITERAL(".sparsebundle")) ||
+ item_->GetTargetFilePath().MatchesExtension(
+ FILE_PATH_LITERAL(".sparseimage")) ||
+ item_->GetTargetFilePath().MatchesExtension(
+ FILE_PATH_LITERAL(".toast")) ||
+ item_->GetTargetFilePath().MatchesExtension(
+ FILE_PATH_LITERAL(".udif"))) {
StartExtractDmgFeatures();
#endif
} else {

Powered by Google App Engine
This is Rietveld 408576698