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

Unified Diff: net/reporting/reporting_policy.cc

Issue 2785293003: Reporting: Make DeliveryAgent self-scheduling. (Closed)
Patch Set: rebase 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') | net/reporting/reporting_test_util.h » ('j') | 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 9461bfcb5cd9c36f92fc2b5348a58c2642f73a6b..d7008894556b22834e19bbc62b23f8503c9f7cde 100644
--- a/net/reporting/reporting_policy.cc
+++ b/net/reporting/reporting_policy.cc
@@ -9,7 +9,8 @@
namespace net {
ReportingPolicy::ReportingPolicy()
- : persistence_interval(base::TimeDelta::FromMinutes(1)),
+ : delivery_interval(base::TimeDelta::FromMinutes(1)),
+ persistence_interval(base::TimeDelta::FromMinutes(1)),
persist_reports_across_restarts(false),
persist_clients_across_restarts(true),
garbage_collection_interval(base::TimeDelta::FromMinutes(5)),
@@ -25,7 +26,8 @@ ReportingPolicy::ReportingPolicy()
}
ReportingPolicy::ReportingPolicy(const ReportingPolicy& other)
- : endpoint_backoff_policy(other.endpoint_backoff_policy),
+ : delivery_interval(base::TimeDelta::FromMinutes(1)),
+ endpoint_backoff_policy(other.endpoint_backoff_policy),
persistence_interval(other.persistence_interval),
persist_reports_across_restarts(other.persist_reports_across_restarts),
persist_clients_across_restarts(other.persist_clients_across_restarts),
« no previous file with comments | « net/reporting/reporting_policy.h ('k') | net/reporting/reporting_test_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698