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

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

Issue 2961373002: Improve Zip File Scanning on Mac (Closed)
Patch Set: removing check for .app on windows Created 3 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 147ee2cca09657b1549531275e9e8764e5afea65..32ef0a9a0ff93dc2d311ea29794fc4fa23c2b8f0 100644
--- a/chrome/common/safe_browsing/download_protection_util.cc
+++ b/chrome/common/safe_browsing/download_protection_util.cc
@@ -9,6 +9,7 @@
#include "base/logging.h"
#include "base/macros.h"
#include "base/strings/string_util.h"
+#include "build/build_config.h"
#include "chrome/common/safe_browsing/file_type_policies.h"
namespace safe_browsing {
@@ -52,7 +53,11 @@ ClientDownloadRequest::DownloadType GetDownloadType(
return ClientDownloadRequest::MAC_EXECUTABLE;
else if (FileTypePolicies::GetInstance()->IsArchiveFile(file))
return ClientDownloadRequest::ARCHIVE;
+#if defined(OS_MACOSX)
+ return ClientDownloadRequest::MAC_EXECUTABLE;
+#else
return ClientDownloadRequest::WIN_EXECUTABLE;
+#endif // OS_MACOSX
}
} // namespace download_protection_util

Powered by Google App Engine
This is Rietveld 408576698