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

Unified Diff: net/reporting/reporting_delivery_agent.cc

Issue 2851603002: Reporting: Cap number of clients in cache. (Closed)
Patch Set: Tweak a few things. 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
Index: net/reporting/reporting_delivery_agent.cc
diff --git a/net/reporting/reporting_delivery_agent.cc b/net/reporting/reporting_delivery_agent.cc
index 209ea8f60d47d975816eed3c88a8a3887b534b3a..d875f468b88c2200f6a5df4c1594c34c93607202 100644
--- a/net/reporting/reporting_delivery_agent.cc
+++ b/net/reporting/reporting_delivery_agent.cc
@@ -135,6 +135,8 @@ class ReportingDeliveryAgentImpl : public ReportingDeliveryAgent,
continue;
}
+ cache()->MarkClientUsed(origin_group.first, endpoint_url);
+
endpoint_reports[endpoint_url].insert(
endpoint_reports[endpoint_url].end(), it.second.begin(),
it.second.end());

Powered by Google App Engine
This is Rietveld 408576698