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

Unified Diff: net/reporting/reporting_policy.cc

Issue 2813103005: Reporting: Observe network changes and clear reports/clients (Closed)
Patch Set: Make requested changes. Created 3 years, 8 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
« no previous file with comments | « net/reporting/reporting_policy.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/reporting/reporting_policy.cc
diff --git a/net/reporting/reporting_policy.cc b/net/reporting/reporting_policy.cc
index d7008894556b22834e19bbc62b23f8503c9f7cde..e439fd7bfc30e43e212e2af892d715b96bde3b87 100644
--- a/net/reporting/reporting_policy.cc
+++ b/net/reporting/reporting_policy.cc
@@ -15,7 +15,9 @@ ReportingPolicy::ReportingPolicy()
persist_clients_across_restarts(true),
garbage_collection_interval(base::TimeDelta::FromMinutes(5)),
max_report_age(base::TimeDelta::FromMinutes(15)),
- max_report_attempts(5) {
+ max_report_attempts(5),
+ clear_reports_on_network_changes(true),
+ clear_clients_on_network_changes(false) {
endpoint_backoff_policy.num_errors_to_ignore = 0;
endpoint_backoff_policy.initial_delay_ms = 60 * 1000; // 1 minute
endpoint_backoff_policy.multiply_factor = 2.0;
@@ -33,7 +35,10 @@ ReportingPolicy::ReportingPolicy(const ReportingPolicy& other)
persist_clients_across_restarts(other.persist_clients_across_restarts),
garbage_collection_interval(other.garbage_collection_interval),
max_report_age(other.max_report_age),
- max_report_attempts(other.max_report_attempts) {}
+ max_report_attempts(other.max_report_attempts),
+ clear_reports_on_network_changes(other.clear_reports_on_network_changes),
+ clear_clients_on_network_changes(other.clear_clients_on_network_changes) {
+}
ReportingPolicy::~ReportingPolicy() {}
« no previous file with comments | « net/reporting/reporting_policy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698