| 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 0e5a2defa1b3a0e24ea3825b782bca5c941efce8..6cc4a4aa79c69b77c4e67d6cfe38eb45c70f781b 100644
|
| --- a/chrome/browser/safe_browsing/download_protection_service.cc
|
| +++ b/chrome/browser/safe_browsing/download_protection_service.cc
|
| @@ -737,7 +737,14 @@ void DownloadProtectionService::CheckDownloadUrl(
|
|
|
| bool DownloadProtectionService::IsSupportedFileType(
|
| const FilePath& filename) const {
|
| + // Currently, the UI only works on Windows. On Linux and Mac we still
|
| + // want to show the dangerous file type warning if the file is possibly
|
| + // dangerous which means we have to always return false here.
|
| +#if defined(OS_WIN)
|
| return IsBinaryFile(filename);
|
| +#else
|
| + return false;
|
| +#endif
|
| }
|
|
|
| void DownloadProtectionService::CancelPendingRequests() {
|
|
|