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

Unified Diff: net/reporting/reporting_service.cc

Issue 2829683004: Reporting: Plumb from //chrome/browser/browsing_data. (Closed)
Patch Set: Fix. 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_service.h ('k') | net/reporting/reporting_test_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/reporting/reporting_service.cc
diff --git a/net/reporting/reporting_service.cc b/net/reporting/reporting_service.cc
index 4dcee9da222bb8812a4df914fb037edf4ea67263..58f29f3746fcd9b7356ff6940d14773c8d3e2f87 100644
--- a/net/reporting/reporting_service.cc
+++ b/net/reporting/reporting_service.cc
@@ -12,6 +12,7 @@
#include "base/time/tick_clock.h"
#include "base/time/time.h"
#include "base/values.h"
+#include "net/reporting/reporting_browsing_data_remover.h"
#include "net/reporting/reporting_cache.h"
#include "net/reporting/reporting_context.h"
#include "net/reporting/reporting_header_parser.h"
@@ -41,6 +42,13 @@ class ReportingServiceImpl : public ReportingService {
ReportingHeaderParser::ParseHeader(context_.get(), url, header_value);
}
+ void RemoveBrowsingData(
+ int data_type_mask,
+ base::Callback<bool(const GURL&)> origin_filter) override {
+ context_->browsing_data_remover()->RemoveBrowsingData(data_type_mask,
+ origin_filter);
+ }
+
private:
std::unique_ptr<ReportingContext> context_;
« no previous file with comments | « net/reporting/reporting_service.h ('k') | net/reporting/reporting_test_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698