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

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

Issue 2886043002: Refrain from sending hit report when user is in incognito mode (Closed)
Patch Set: fixed comment typo 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/safe_browsing_service_browsertest.cc
diff --git a/chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc b/chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc
index 53beb2bdb18b25286f2f3b1de7bf893bd50079b3..630f38a5d79a81f245d45ded8391e688f0f1e9f1 100644
--- a/chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc
@@ -152,12 +152,12 @@ void SetProtocolConfigURLPrefix(const std::string& url_prefix,
class FakeSafeBrowsingUIManager : public TestSafeBrowsingUIManager {
public:
- void MaybeReportSafeBrowsingHit(
- const safe_browsing::HitReport& hit_report) override {
+ void MaybeReportSafeBrowsingHit(const safe_browsing::HitReport& hit_report,
+ content::WebContents* web_contents) override {
EXPECT_FALSE(got_hit_report_);
got_hit_report_ = true;
hit_report_ = hit_report;
- SafeBrowsingUIManager::MaybeReportSafeBrowsingHit(hit_report);
+ SafeBrowsingUIManager::MaybeReportSafeBrowsingHit(hit_report, web_contents);
}
bool got_hit_report_ = false;

Powered by Google App Engine
This is Rietveld 408576698