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

Unified Diff: chrome/browser/android/preferences/pref_service_bridge.cc

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: chrome/browser/android/preferences/pref_service_bridge.cc
diff --git a/chrome/browser/android/preferences/pref_service_bridge.cc b/chrome/browser/android/preferences/pref_service_bridge.cc
index fbba31da4fb14e182442eb97c5523f2166de7776..40a3c6e9abdf6ba9c1f3c84249de912fc8269b62 100644
--- a/chrome/browser/android/preferences/pref_service_bridge.cc
+++ b/chrome/browser/android/preferences/pref_service_bridge.cc
@@ -550,6 +550,8 @@ static void SetBrowsingDataDeletionTimePeriod(JNIEnv* env,
DCHECK_GE(time_period, 0);
DCHECK_LE(time_period,
static_cast<int>(browsing_data::TimePeriod::TIME_PERIOD_LAST));
+ browsing_data::RecordTimePeriodChange(
+ static_cast<browsing_data::TimePeriod>(time_period));
GetPrefService()->SetInteger(browsing_data::GetTimePeriodPreferenceName(
ToTabEnum(clear_browsing_data_tab)),
time_period);

Powered by Google App Engine
This is Rietveld 408576698