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

Unified Diff: net/reporting/reporting_browsing_data_remover.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 | « content/browser/net/reporting_service_proxy.cc ('k') | net/reporting/reporting_cache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/reporting/reporting_browsing_data_remover.cc
diff --git a/net/reporting/reporting_browsing_data_remover.cc b/net/reporting/reporting_browsing_data_remover.cc
index d92a78e2910e553f77e32e424570aeb1a8bef720..5983fe6be9540f39c2ba664c46f843ce39adb09e 100644
--- a/net/reporting/reporting_browsing_data_remover.cc
+++ b/net/reporting/reporting_browsing_data_remover.cc
@@ -23,8 +23,10 @@ void ReportingBrowsingDataRemover::RemoveBrowsingData(
bool remove_clients = (data_type_mask & DATA_TYPE_CLIENTS) != 0;
if (origin_filter.is_null()) {
- if (remove_reports)
- cache->RemoveAllReports();
+ if (remove_reports) {
+ cache->RemoveAllReports(
+ ReportingReport::Outcome::ERASED_BROWSING_DATA_REMOVED);
+ }
if (remove_clients)
cache->RemoveAllClients();
return;
@@ -40,7 +42,9 @@ void ReportingBrowsingDataRemover::RemoveBrowsingData(
reports_to_remove.push_back(report);
}
- cache->RemoveReports(reports_to_remove);
+ cache->RemoveReports(
+ reports_to_remove,
+ ReportingReport::Outcome::ERASED_BROWSING_DATA_REMOVED);
}
if (remove_clients) {
« no previous file with comments | « content/browser/net/reporting_service_proxy.cc ('k') | net/reporting/reporting_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698