| 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 3c03a2b123d37270bc142f90b402ffdd1b61ff8a..fcf97c25ce49e090a546db8cc7c46fd1a3f347cd 100644
|
| --- a/chrome/browser/safe_browsing/download_protection_service.cc
|
| +++ b/chrome/browser/safe_browsing/download_protection_service.cc
|
| @@ -670,10 +670,10 @@ class DownloadProtectionService::CheckClientDownloadRequest
|
| return;
|
| }
|
|
|
| - // Currently, the UI is only enabled on Windows and OSX so we don't even
|
| - // bother with pinging the server if we're not on one of those platforms.
|
| - // TODO(noelutz): change this code once the UI is done for Linux.
|
| -#if defined(OS_WIN) || defined(OS_MACOSX)
|
| +// Currently, the UI is enabled on Windows, OSX and chrome OS. we don't ping
|
| +// the server if we're not on one of those platforms.
|
| +// TODO(noelutz): change this code once the UI is done for Linux.
|
| +#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_CHROMEOS)
|
| // The URLFetcher is owned by the UI thread, so post a message to
|
| // start the pingback.
|
| BrowserThread::PostTask(
|
| @@ -1018,10 +1018,10 @@ void DownloadProtectionService::CheckDownloadUrl(
|
| bool DownloadProtectionService::IsSupportedDownload(
|
| const content::DownloadItem& item,
|
| const base::FilePath& target_path) const {
|
| - // Currently, the UI is only enabled on Windows and OSX. On Linux 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) || defined(OS_MACOSX)
|
| +// Currently, the UI is only enabled on Windows, OSX and Chrome OS. On
|
| +// Linux 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) || defined(OS_MACOSX) || defined(OS_CHROMEOS)
|
| DownloadCheckResultReason reason = REASON_MAX;
|
| ClientDownloadRequest::DownloadType type =
|
| ClientDownloadRequest::WIN_EXECUTABLE;
|
|
|