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

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

Issue 2605403002: Fix flaky CertificateReportingService browser tests. (Closed)
Patch Set: Style Created 3 years, 12 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/certificate_reporting_service_factory.cc
diff --git a/chrome/browser/safe_browsing/certificate_reporting_service_factory.cc b/chrome/browser/safe_browsing/certificate_reporting_service_factory.cc
index 606e05e7ee7c7c6d07a2f742bec04d901bff95ad..272c260e374e23363bc6f2f68dbebbc90432655e 100644
--- a/chrome/browser/safe_browsing/certificate_reporting_service_factory.cc
+++ b/chrome/browser/safe_browsing/certificate_reporting_service_factory.cc
@@ -60,6 +60,11 @@ void CertificateReportingServiceFactory::SetMaxQueuedReportCountForTesting(
max_queued_report_count_ = max_queued_report_count;
}
+void CertificateReportingServiceFactory::SetServiceResetCallback(
+ const base::Callback<void()>& service_reset_callback) {
+ service_reset_callback_ = service_reset_callback;
+}
+
CertificateReportingServiceFactory::CertificateReportingServiceFactory()
: BrowserContextKeyedServiceFactory(
"cert_reporting::Factory",
@@ -80,7 +85,7 @@ KeyedService* CertificateReportingServiceFactory::BuildServiceInstanceFor(
safe_browsing_service, safe_browsing_service->url_request_context(),
static_cast<Profile*>(profile), server_public_key_,
server_public_key_version_, max_queued_report_count_, queued_report_ttl_,
- clock_.get());
+ clock_.get(), service_reset_callback_);
}
content::BrowserContext*

Powered by Google App Engine
This is Rietveld 408576698