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

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

Issue 1919463002: Add more mac executable extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2661
Patch Set: 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 08c1ff2b7c77c5ba8ff4f5d4b30ec818e2b8a666..25007982d8fdaa968dbbf17ce44ab777397b4bb2 100644
--- a/chrome/browser/safe_browsing/download_protection_service.cc
+++ b/chrome/browser/safe_browsing/download_protection_service.cc
@@ -334,7 +334,37 @@ class DownloadProtectionService::CheckClientDownloadRequest
StartExtractZipFeatures();
#if defined(OS_MACOSX)
} else if (item_->GetTargetFilePath().MatchesExtension(
- FILE_PATH_LITERAL(".dmg"))) {
+ FILE_PATH_LITERAL(".dmg")) ||
+ item_->GetTargetFilePath().MatchesExtension(
+ FILE_PATH_LITERAL(".img")) ||
+ item_->GetTargetFilePath().MatchesExtension(
+ FILE_PATH_LITERAL(".iso")) ||
+ item_->GetTargetFilePath().MatchesExtension(
+ 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 {
« no previous file with comments | « chrome/browser/download/download_extensions.cc ('k') | chrome/common/safe_browsing/download_protection_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698