Commit 09186d9e authored by noelutz@google.com's avatar noelutz@google.com

Show dangerous file type warning on Linux and Mac.

BUG=None
TEST=On linux you should see a dangerous file type warning when downloading an exe.


Review URL: http://codereview.chromium.org/8806021

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113126 0039d316-1c4b-4281-b951-d872f2087c98
parent 4c8346f5
...@@ -737,7 +737,14 @@ void DownloadProtectionService::CheckDownloadUrl( ...@@ -737,7 +737,14 @@ void DownloadProtectionService::CheckDownloadUrl(
bool DownloadProtectionService::IsSupportedFileType( bool DownloadProtectionService::IsSupportedFileType(
const FilePath& filename) const { 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); return IsBinaryFile(filename);
#else
return false;
#endif
} }
void DownloadProtectionService::CancelPendingRequests() { void DownloadProtectionService::CancelPendingRequests() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment