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

Unified Diff: chrome/browser/about_flags.cc

Issue 2607043002: [Autofill] Credit Card Autofill Last Used Date Experiment (Closed)
Patch Set: Resolved patch conflicts Created 3 years, 10 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 df649b41ed8cf566ffdd8af6c188607b45d1dbc0..fb5c381b74ebf32cecd483a338935d0ef0aef3f8 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -670,6 +670,17 @@ kAutofillCreditCardPopupLayoutFeatureVariations[] = {
nullptr}};
#endif // OS_ANDROID
+const FeatureEntry::FeatureParam
+ kAutofillCreditCardLastUsedDateFeatureVariationExpDate[] = {
+ {"show_expiration_date", "true"}};
+
+const FeatureEntry::FeatureVariation
+ kAutofillCreditCardLastUsedDateFeatureVariations[] = {
+ {"Display expiration date",
+ kAutofillCreditCardLastUsedDateFeatureVariationExpDate,
+ arraysize(kAutofillCreditCardLastUsedDateFeatureVariationExpDate),
+ nullptr}};
+
// RECORDING USER METRICS FOR FLAGS:
// -----------------------------------------------------------------------------
// The first line of the entry is the internal name.
@@ -2157,7 +2168,13 @@ const FeatureEntry kFeatureEntries[] = {
IDS_NATIVE_ANDROID_HISTORY_MANAGER_DESCRIPTION, kOsAndroid,
FEATURE_VALUE_TYPE(features::kNativeAndroidHistoryManager)},
#endif // OS_ANDROID
-
+ {"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,
+ kOsAll, FEATURE_WITH_VARIATIONS_VALUE_TYPE(
+ autofill::kAutofillCreditCardLastUsedDateDisplay,
+ kAutofillCreditCardLastUsedDateFeatureVariations,
+ "AutofillCreditCardLastUsedDate")},
#if defined(OS_WIN)
{"windows10-custom-titlebar", IDS_FLAGS_WINDOWS10_CUSTOM_TITLEBAR_NAME,
IDS_FLAGS_WINDOWS10_CUSTOM_TITLEBAR_DESCRIPTION, kOsWin,

Powered by Google App Engine
This is Rietveld 408576698