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

Unified Diff: chrome/browser/safe_browsing/download_protection_service.h

Issue 565053002: [Downloads] Gracefully handle SafeBrowsing check failures. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/browser/safe_browsing/download_protection_service.h
diff --git a/chrome/browser/safe_browsing/download_protection_service.h b/chrome/browser/safe_browsing/download_protection_service.h
index 0b5f69f3be9262e7a64d620c5862330852216f43..070c9a388d60f8f306e2634c0d0b10ec49cb0483 100644
--- a/chrome/browser/safe_browsing/download_protection_service.h
+++ b/chrome/browser/safe_browsing/download_protection_service.h
@@ -41,6 +41,7 @@ class BinaryFeatureExtractor;
class DownloadProtectionService {
public:
enum DownloadCheckResult {
+ UNKNOWN,
SAFE,
DANGEROUS,
UNCOMMON,
@@ -90,7 +91,7 @@ class DownloadProtectionService {
// Enables or disables the service. This is usually called by the
// SafeBrowsingService, which tracks whether any profile uses these services
// at all. Disabling causes any pending and future requests to have their
- // callbacks called with "SAFE" results.
+ // callbacks called with "UNKNOWN" results.
void SetEnabled(bool enabled);
bool enabled() const {
« no previous file with comments | « chrome/browser/download/download_target_info.h ('k') | chrome/browser/safe_browsing/download_protection_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698