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 7fe07580457dd4280c89dac7c48f23e5d9f89f45..b867e88a4f6a526348c71fb7e2025f85eb7ef951 100644 |
--- a/chrome/browser/safe_browsing/download_protection_service.cc |
+++ b/chrome/browser/safe_browsing/download_protection_service.cc |
@@ -527,12 +527,20 @@ class DownloadProtectionService::CheckClientDownloadRequest |
RecordImprovedProtectionStats(REASON_PING_DISABLED); |
CheckDigestList(); |
} else { |
+ // Currently, the UI only works on Windows so we don't even bother |
+ // with pinging the server if we're not on Windows. TODO(noelutz): |
+ // change this code once the UI is done for Linux and Mac. |
+#if defined(OS_WIN) |
// The URLFetcher is owned by the UI thread, so post a message to |
// start the pingback. |
BrowserThread::PostTask( |
BrowserThread::UI, |
FROM_HERE, |
base::Bind(&CheckClientDownloadRequest::SendRequest, this)); |
+#else |
+ RecordImprovedProtectionStats(REASON_OS_NOT_SUPPORTED); |
+ CheckDigestList(); |
+#endif |
} |
} |