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

Unified Diff: net/reporting/reporting_network_change_observer.cc

Issue 2900553004: Reporting: Add histograms. (Closed)
Patch Set: rebase Created 3 years, 5 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_header_parser.cc ('k') | net/reporting/reporting_report.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/reporting/reporting_network_change_observer.cc
diff --git a/net/reporting/reporting_network_change_observer.cc b/net/reporting/reporting_network_change_observer.cc
index 6c62b7f57a49aaf457fd70848d6eec5d58d1b6b8..99bb5a66f8a81152c755cc74ec1bf7500131f212 100644
--- a/net/reporting/reporting_network_change_observer.cc
+++ b/net/reporting/reporting_network_change_observer.cc
@@ -9,6 +9,7 @@
#include "net/reporting/reporting_cache.h"
#include "net/reporting/reporting_context.h"
#include "net/reporting/reporting_policy.h"
+#include "net/reporting/reporting_report.h"
namespace net {
@@ -38,7 +39,8 @@ class ReportingNetworkChangeObserverImpl
return;
if (context_->policy().clear_reports_on_network_changes)
- context_->cache()->RemoveAllReports();
+ context_->cache()->RemoveAllReports(
+ ReportingReport::Outcome::ERASED_NETWORK_CHANGED);
if (context_->policy().clear_clients_on_network_changes)
context_->cache()->RemoveAllClients();
« no previous file with comments | « net/reporting/reporting_header_parser.cc ('k') | net/reporting/reporting_report.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698