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

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: update download stats 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 48c798a59d8ccb86ab6d48396041fce2ed947a8a..ea264ace5c57ee88bd1a618a91eaddd6ffb7ebd4 100644
--- a/chrome/browser/safe_browsing/download_protection_service.cc
+++ b/chrome/browser/safe_browsing/download_protection_service.cc
@@ -342,7 +342,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 {
« 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