Index: components/safe_browsing/base_ui_manager.h |
diff --git a/components/safe_browsing/base_ui_manager.h b/components/safe_browsing/base_ui_manager.h |
index 5a1785c216f4a9dc23770a844355c5c269ed7ad9..f20e0d938c0654ffd3457faf898bee7a20b47bb6 100644 |
--- a/components/safe_browsing/base_ui_manager.h |
+++ b/components/safe_browsing/base_ui_manager.h |
@@ -61,10 +61,11 @@ class BaseUIManager |
// This is a no-op in the base class, but should be overridden to report hits |
// to the unsafe contents (malware, phishing, unsafe download URL) |
- // to the server. Can only be called on UI thread. |
+ // to the server. Can only be called on UI thread. Will only upload a hit |
+ // report if the user has enabled SBER and is not currently in incognito mode. |
virtual void MaybeReportSafeBrowsingHit( |
const safe_browsing::HitReport& hit_report, |
- content::WebContents* web_contents); |
+ const content::WebContents* web_contents); |
// A convenience wrapper method for IsUrlWhitelistedOrPendingForWebContents. |
virtual bool IsWhitelisted(const UnsafeResource& resource); |