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

Unified Diff: net/reporting/reporting_context.cc

Issue 2813103005: Reporting: Observe network changes and clear reports/clients (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
Index: net/reporting/reporting_context.cc
diff --git a/net/reporting/reporting_context.cc b/net/reporting/reporting_context.cc
index 1dd255bcb1b8759b97bfc6a9be75fc2ebcd1d3ce..91a4acb47711b3cdc3282a3c52e05d2b464b2ce8 100644
--- a/net/reporting/reporting_context.cc
+++ b/net/reporting/reporting_context.cc
@@ -20,6 +20,7 @@
#include "net/reporting/reporting_delivery_agent.h"
#include "net/reporting/reporting_endpoint_manager.h"
#include "net/reporting/reporting_garbage_collector.h"
+#include "net/reporting/reporting_network_change_observer.h"
#include "net/reporting/reporting_observer.h"
#include "net/reporting/reporting_persister.h"
#include "net/reporting/reporting_policy.h"
@@ -97,6 +98,7 @@ ReportingContext::ReportingContext(const ReportingPolicy& policy,
endpoint_manager_(base::MakeUnique<ReportingEndpointManager>(this)),
delivery_agent_(base::MakeUnique<ReportingDeliveryAgent>(this)),
persister_(ReportingPersister::Create(this)),
- garbage_collector_(ReportingGarbageCollector::Create(this)) {}
+ garbage_collector_(ReportingGarbageCollector::Create(this)),
+ network_change_observer_(ReportingNetworkChangeObserver::Create(this)) {}
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698