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

Unified Diff: components/browsing_data/core/browsing_data_utils.h

Issue 2578723002: Reduce BrowsingDataRemover's dependencies on Chrome (Closed)
Patch Set: A new callsite appeared through rebase - fixed the compilation error. Created 3 years, 12 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: components/browsing_data/core/browsing_data_utils.h
diff --git a/components/browsing_data/core/browsing_data_utils.h b/components/browsing_data/core/browsing_data_utils.h
index 368dc60c84ba4d0e3cbbe48dc6f3ab4569402ae8..db0d7c2ce912f4d0be1e6d92db26c616f35323e4 100644
--- a/components/browsing_data/core/browsing_data_utils.h
+++ b/components/browsing_data/core/browsing_data_utils.h
@@ -43,6 +43,12 @@ enum TimePeriod {
// Calculate the begin time for the deletion range specified by |time_period|.
base::Time CalculateBeginDeleteTime(TimePeriod time_period);
+// Calculate the end time for the deletion range specified by |time_period|.
+base::Time CalculateEndDeleteTime(TimePeriod time_period);
+
+// Records the UMA action of UI-triggered data deletion for |time_period|.
+void RecordDeletionForPeriod(TimePeriod time_period);
+
// Constructs the text to be displayed by a counter from the given |result|.
// Currently this can only be used for counters for which the Result is defined
// in components/browsing_data/core/counters.

Powered by Google App Engine
This is Rietveld 408576698