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

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

Issue 2927063002: Add metrics for new CBD dialog (Closed)
Patch Set: Update migration comment (and rebase) Created 3 years, 6 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 3e087f8cf1e722cfe1bfda90bfb7e6ee9d5339f4..09d434fc0fdd89340fc18520c4e1abfeeaab0cfe 100644
--- a/components/browsing_data/core/browsing_data_utils.h
+++ b/components/browsing_data/core/browsing_data_utils.h
@@ -51,6 +51,12 @@ base::Time CalculateEndDeleteTime(TimePeriod time_period);
// Records the UMA action of UI-triggered data deletion for |time_period|.
void RecordDeletionForPeriod(TimePeriod time_period);
+// Records the UMA action of a change of the clear browsing data time period.
+void RecordTimePeriodChange(TimePeriod period);
+
+// Records the UMA action and histogram of a data deletion from |tab|.
+void RecordDeletionFromTab(ClearBrowsingDataTab tab);
+
// 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