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

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

Issue 2886043002: Refrain from sending hit report when user is in incognito mode (Closed)
Patch Set: ready for review Created 3 years, 7 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 7a886e32f03142460d6d9c8acba252feb55f01b7..c38104400db5d9515e965fd6d574f0a2e165ce7a 100644
--- a/chrome/browser/safe_browsing/download_protection_service.cc
+++ b/chrome/browser/safe_browsing/download_protection_service.cc
@@ -289,7 +289,8 @@ class DownloadUrlSBClient
hit_report.is_metrics_reporting_active =
ChromeMetricsServiceAccessor::IsMetricsAndCrashReportingEnabled();
- ui_manager_->MaybeReportSafeBrowsingHit(hit_report);
+ ui_manager_->MaybeReportSafeBrowsingHit(hit_report,
+ item_->GetWebContents());
}
void IdentifyReferrerChain() {

Powered by Google App Engine
This is Rietveld 408576698