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

Unified Diff: chrome/browser/about_flags.cc

Issue 2607043002: [Autofill] Credit Card Autofill Last Used Date Experiment (Closed)
Patch Set: Added unittest dependency Created 3 years, 11 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/about_flags.cc
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index 1416cdd753c09728dc384c746a3fa25c2602f765..47ec32ba63e68ffefac31caa99ecae6162e1c0c9 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -695,6 +695,39 @@ kAutofillCreditCardPopupLayoutFeatureVariations[] = {
nullptr}};
#endif // OS_ANDROID
+#if defined(OS_ANDROID)
+const FeatureEntry::FeatureParam
+kAutofillCreditCardLastUsedDateFeatureVariationExpDate[] = {
+ {"show_expiration_date", "true"}};
+
+const FeatureEntry::FeatureParam
+kAutofillCreditCardLastUsedDateFeatureVariationTimeDetail[] = {
+ {"show_time_detail", "true"}};
+
+const FeatureEntry::FeatureParam
+kAutofillCreditCardLastUsedDateFeatureVariationExpDateAndTimeDetail[] = {
+ {"show_expiration_date", "true"},
+ {"show_time_detail", "true"}};
+
+const FeatureEntry::FeatureVariation
+kAutofillCreditCardLastUsedDateFeatureVariations[] = {
+ {"Display expiration date",
+ kAutofillCreditCardLastUsedDateFeatureVariationExpDate,
+ arraysize(
+ kAutofillCreditCardLastUsedDateFeatureVariationExpDate),
+ nullptr},
+ {"Display time detail",
+ kAutofillCreditCardLastUsedDateFeatureVariationTimeDetail,
+ arraysize(
+ kAutofillCreditCardLastUsedDateFeatureVariationTimeDetail),
+ nullptr},
+ {"Display expiration date and time detail",
+ kAutofillCreditCardLastUsedDateFeatureVariationExpDateAndTimeDetail,
+ arraysize(
+ kAutofillCreditCardLastUsedDateFeatureVariationExpDateAndTimeDetail),
+ nullptr}};
+#endif // OS_ANDROID
+
// RECORDING USER METRICS FOR FLAGS:
// -----------------------------------------------------------------------------
// The first line of the entry is the internal name.
@@ -2195,6 +2228,13 @@ const FeatureEntry kFeatureEntries[] = {
autofill::kAutofillCreditCardPopupLayout,
kAutofillCreditCardPopupLayoutFeatureVariations,
"AutofillCreditCardPopupLayout")},
+ {"enable-autofill-credit-card-last-used-date-display",
+ IDS_FLAGS_ENABLE_AUTOFILL_CREDIT_CARD_LAST_USED_DATE_DISPLAY,
+ IDS_FLAGS_ENABLE_AUTOFILL_CREDIT_CARD_LAST_USED_DATE_DISPLAY_DESCRIPTION,
+ kOsAndroid, FEATURE_WITH_VARIATIONS_VALUE_TYPE(
+ autofill::kAutofillCreditCardLastUsedDateDisplay,
+ kAutofillCreditCardLastUsedDateFeatureVariations,
+ "AutofillCreditCardLastUsedDate")},
{"native-android-history-manager", IDS_NATIVE_ANDROID_HISTORY_MANAGER,
IDS_NATIVE_ANDROID_HISTORY_MANAGER_DESCRIPTION, kOsAndroid,
FEATURE_VALUE_TYPE(chrome::android::kNativeAndroidHistoryManager)},

Powered by Google App Engine
This is Rietveld 408576698