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

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

Issue 2696973002: Allow Safe Browsing backend to select downloads to upload. (Closed)
Patch Set: Switch histogram to use enum, per isherman Created 3 years, 10 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.cc
diff --git a/chrome/browser/safe_browsing/download_protection_service.cc b/chrome/browser/safe_browsing/download_protection_service.cc
index 2b9a6d289d6a85fcaf530010521797147c2c8d78..486af67b8883d6a08a51e1ce0dee72089bad7c18 100644
--- a/chrome/browser/safe_browsing/download_protection_service.cc
+++ b/chrome/browser/safe_browsing/download_protection_service.cc
@@ -597,8 +597,9 @@ class DownloadProtectionService::CheckClientDownloadRequest
if (!token.empty())
SetDownloadPingToken(item_, token);
+ bool upload_requested = response.upload();
DownloadFeedbackService::MaybeStorePingsForDownload(
- result, item_, client_download_request_data_, data);
+ result, upload_requested, item_, client_download_request_data_, data);
}
// We don't need the fetcher anymore.
fetcher_.reset();

Powered by Google App Engine
This is Rietveld 408576698