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

Unified Diff: chrome/browser/safe_browsing/certificate_reporting_service.h

Issue 2605403002: Fix flaky CertificateReportingService browser tests. (Closed)
Patch Set: Fix broken tests Created 3 years, 11 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.h
diff --git a/chrome/browser/safe_browsing/certificate_reporting_service.h b/chrome/browser/safe_browsing/certificate_reporting_service.h
index 7137655e1e40e4bbc5117853a4af095773fb7076..79f7bf62ca7a206f50f576525cfe06577ae7cbf2 100644
--- a/chrome/browser/safe_browsing/certificate_reporting_service.h
+++ b/chrome/browser/safe_browsing/certificate_reporting_service.h
@@ -152,7 +152,8 @@ class CertificateReportingService : public KeyedService {
uint32_t server_public_key_version,
size_t max_queued_report_count,
base::TimeDelta max_report_age,
- base::Clock* clock);
+ base::Clock* clock,
+ const base::Callback<void()>& reset_callback);
estark 2017/01/05 16:42:28 Instead of passing this to the constructor, would
meacer 2017/01/05 20:15:46 That used to be the case for most of the parameter
estark 2017/01/06 15:41:30 Acknowledged.
~CertificateReportingService() override;
@@ -226,6 +227,9 @@ class CertificateReportingService : public KeyedService {
base::Clock* const clock_;
+ // Called when the service is reset.
estark 2017/01/05 16:42:28 nit: add "Used for testing"?
meacer 2017/01/05 20:15:46 Done.
+ base::Callback<void()> reset_callback_;
+
// Encryption parameters.
uint8_t* server_public_key_;
uint32_t server_public_key_version_;

Powered by Google App Engine
This is Rietveld 408576698