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

Unified Diff: chrome/browser/file_select_helper.cc

Issue 2029903002: Add token field to ClientSafeBrowsingReportReqeust (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tweak comments Created 4 years, 6 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/file_select_helper.cc
diff --git a/chrome/browser/file_select_helper.cc b/chrome/browser/file_select_helper.cc
index 7be912fcdd60c504b04b45dd0c2ddccb2acdf7ec..21a32193ba86a91bd0c1e802fc26b0764d88ae73 100644
--- a/chrome/browser/file_select_helper.cc
+++ b/chrome/browser/file_select_helper.cc
@@ -89,7 +89,8 @@ bool IsValidProfile(Profile* profile) {
#if defined(FULL_SAFE_BROWSING)
bool IsDownloadAllowedBySafeBrowsing(
- safe_browsing::DownloadProtectionService::DownloadCheckResult result) {
+ safe_browsing::DownloadProtectionService::DownloadCheckResult result,
+ const std::string& token_unused) {
using Result = safe_browsing::DownloadProtectionService::DownloadCheckResult;
switch (result) {
// Only allow downloads that are marked as SAFE or UNKNOWN by SafeBrowsing.
@@ -111,8 +112,9 @@ bool IsDownloadAllowedBySafeBrowsing(
void InterpretSafeBrowsingVerdict(
const base::Callback<void(bool)>& recipient,
- safe_browsing::DownloadProtectionService::DownloadCheckResult result) {
- recipient.Run(IsDownloadAllowedBySafeBrowsing(result));
+ safe_browsing::DownloadProtectionService::DownloadCheckResult result,
+ const std::string& token) {
+ recipient.Run(IsDownloadAllowedBySafeBrowsing(result, token));
}
#endif

Powered by Google App Engine
This is Rietveld 408576698