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

Unified Diff: net/reporting/reporting_policy.cc

Issue 2851603002: Reporting: Cap number of clients in cache. (Closed)
Patch Set: Make requested change. 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
« 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 11f58fd087fa24ee9afded18c4b9115556678a9a..62b7f68ce56d908c6c222d7060bf289a60986e38 100644
--- a/net/reporting/reporting_policy.cc
+++ b/net/reporting/reporting_policy.cc
@@ -10,6 +10,7 @@ namespace net {
ReportingPolicy::ReportingPolicy()
: max_report_count(100u),
+ max_client_count(1000u),
delivery_interval(base::TimeDelta::FromMinutes(1)),
persistence_interval(base::TimeDelta::FromMinutes(1)),
persist_reports_across_restarts(false),
@@ -30,6 +31,7 @@ ReportingPolicy::ReportingPolicy()
ReportingPolicy::ReportingPolicy(const ReportingPolicy& other)
: max_report_count(other.max_report_count),
+ max_client_count(other.max_client_count),
delivery_interval(other.delivery_interval),
endpoint_backoff_policy(other.endpoint_backoff_policy),
persistence_interval(other.persistence_interval),
« 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