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

Unified Diff: net/reporting/reporting_context.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_context.h ('k') | net/reporting/reporting_network_change_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/reporting/reporting_context.cc
diff --git a/net/reporting/reporting_context.cc b/net/reporting/reporting_context.cc
index 5a976b34461db0eba5e4047a61e3614418c5dcc5..047a4a34306c7dec70382485034008ad2d8d8b15 100644
--- a/net/reporting/reporting_context.cc
+++ b/net/reporting/reporting_context.cc
@@ -19,6 +19,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"
@@ -103,6 +104,7 @@ ReportingContext::ReportingContext(const ReportingPolicy& policy,
endpoint_manager_(base::MakeUnique<ReportingEndpointManager>(this)),
delivery_agent_(ReportingDeliveryAgent::Create(this)),
persister_(ReportingPersister::Create(this)),
- garbage_collector_(ReportingGarbageCollector::Create(this)) {}
+ garbage_collector_(ReportingGarbageCollector::Create(this)),
+ network_change_observer_(ReportingNetworkChangeObserver::Create(this)) {}
} // namespace net
« no previous file with comments | « net/reporting/reporting_context.h ('k') | net/reporting/reporting_network_change_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698