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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/about_flags.h" 5 #include "chrome/browser/about_flags.h"
6 6
7 #include <iterator> 7 #include <iterator>
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <utility> 10 #include <utility>
(...skipping 652 matching lines...) Expand 10 before | Expand all | Expand 10 after
663 kAutofillCreditCardPopupLayoutFeatureVariationDropdownItemHeight, 663 kAutofillCreditCardPopupLayoutFeatureVariationDropdownItemHeight,
664 arraysize( 664 arraysize(
665 kAutofillCreditCardPopupLayoutFeatureVariationDropdownItemHeight), 665 kAutofillCreditCardPopupLayoutFeatureVariationDropdownItemHeight),
666 nullptr}, 666 nullptr},
667 {"Display credit card icon at start and increase dropdown item height", 667 {"Display credit card icon at start and increase dropdown item height",
668 kAutofillCreditCardPopupLayoutFeatureVariationExpanded, 668 kAutofillCreditCardPopupLayoutFeatureVariationExpanded,
669 arraysize(kAutofillCreditCardPopupLayoutFeatureVariationExpanded), 669 arraysize(kAutofillCreditCardPopupLayoutFeatureVariationExpanded),
670 nullptr}}; 670 nullptr}};
671 #endif // OS_ANDROID 671 #endif // OS_ANDROID
672 672
673 const FeatureEntry::FeatureParam
674 kAutofillCreditCardLastUsedDateFeatureVariationExpDate[] = {
675 {"show_expiration_date", "true"}};
676
677 const FeatureEntry::FeatureVariation
678 kAutofillCreditCardLastUsedDateFeatureVariations[] = {
679 {"Display expiration date",
680 kAutofillCreditCardLastUsedDateFeatureVariationExpDate,
681 arraysize(kAutofillCreditCardLastUsedDateFeatureVariationExpDate),
682 nullptr}};
683
673 // RECORDING USER METRICS FOR FLAGS: 684 // RECORDING USER METRICS FOR FLAGS:
674 // ----------------------------------------------------------------------------- 685 // -----------------------------------------------------------------------------
675 // The first line of the entry is the internal name. 686 // The first line of the entry is the internal name.
676 // 687 //
677 // To add a new entry, add to the end of kFeatureEntries. There are two 688 // To add a new entry, add to the end of kFeatureEntries. There are two
678 // distinct types of entries: 689 // distinct types of entries:
679 // . SINGLE_VALUE: entry is either on or off. Use the SINGLE_VALUE_TYPE 690 // . SINGLE_VALUE: entry is either on or off. Use the SINGLE_VALUE_TYPE
680 // macro for this type supplying the command line to the macro. 691 // macro for this type supplying the command line to the macro.
681 // . MULTI_VALUE: a list of choices, the first of which should correspond to a 692 // . MULTI_VALUE: a list of choices, the first of which should correspond to a
682 // deactivated state for this lab (i.e. no command line option). To specify 693 // deactivated state for this lab (i.e. no command line option). To specify
(...skipping 1467 matching lines...) Expand 10 before | Expand all | Expand 10 after
2150 IDS_FLAGS_ENABLE_EXPANDED_AUTOFILL_CREDIT_CARD_POPUP_LAYOUT, 2161 IDS_FLAGS_ENABLE_EXPANDED_AUTOFILL_CREDIT_CARD_POPUP_LAYOUT,
2151 IDS_FLAGS_ENABLE_EXPANDED_AUTOFILL_CREDIT_CARD_POPUP_LAYOUT_DESCRIPTION, 2162 IDS_FLAGS_ENABLE_EXPANDED_AUTOFILL_CREDIT_CARD_POPUP_LAYOUT_DESCRIPTION,
2152 kOsAndroid, FEATURE_WITH_VARIATIONS_VALUE_TYPE( 2163 kOsAndroid, FEATURE_WITH_VARIATIONS_VALUE_TYPE(
2153 autofill::kAutofillCreditCardPopupLayout, 2164 autofill::kAutofillCreditCardPopupLayout,
2154 kAutofillCreditCardPopupLayoutFeatureVariations, 2165 kAutofillCreditCardPopupLayoutFeatureVariations,
2155 "AutofillCreditCardPopupLayout")}, 2166 "AutofillCreditCardPopupLayout")},
2156 {"native-android-history-manager", IDS_NATIVE_ANDROID_HISTORY_MANAGER, 2167 {"native-android-history-manager", IDS_NATIVE_ANDROID_HISTORY_MANAGER,
2157 IDS_NATIVE_ANDROID_HISTORY_MANAGER_DESCRIPTION, kOsAndroid, 2168 IDS_NATIVE_ANDROID_HISTORY_MANAGER_DESCRIPTION, kOsAndroid,
2158 FEATURE_VALUE_TYPE(features::kNativeAndroidHistoryManager)}, 2169 FEATURE_VALUE_TYPE(features::kNativeAndroidHistoryManager)},
2159 #endif // OS_ANDROID 2170 #endif // OS_ANDROID
2160 2171 {"enable-autofill-credit-card-last-used-date-display",
2172 IDS_FLAGS_ENABLE_AUTOFILL_CREDIT_CARD_LAST_USED_DATE_DISPLAY,
2173 IDS_FLAGS_ENABLE_AUTOFILL_CREDIT_CARD_LAST_USED_DATE_DISPLAY_DESCRIPTION,
2174 kOsAll, FEATURE_WITH_VARIATIONS_VALUE_TYPE(
2175 autofill::kAutofillCreditCardLastUsedDateDisplay,
2176 kAutofillCreditCardLastUsedDateFeatureVariations,
2177 "AutofillCreditCardLastUsedDate")},
2161 #if defined(OS_WIN) 2178 #if defined(OS_WIN)
2162 {"windows10-custom-titlebar", IDS_FLAGS_WINDOWS10_CUSTOM_TITLEBAR_NAME, 2179 {"windows10-custom-titlebar", IDS_FLAGS_WINDOWS10_CUSTOM_TITLEBAR_NAME,
2163 IDS_FLAGS_WINDOWS10_CUSTOM_TITLEBAR_DESCRIPTION, kOsWin, 2180 IDS_FLAGS_WINDOWS10_CUSTOM_TITLEBAR_DESCRIPTION, kOsWin,
2164 SINGLE_VALUE_TYPE(switches::kWindows10CustomTitlebar)}, 2181 SINGLE_VALUE_TYPE(switches::kWindows10CustomTitlebar)},
2165 #endif // OS_WIN 2182 #endif // OS_WIN
2166 2183
2167 {"enable-faster-location-reload", IDS_FLAGS_FASTER_LOCATION_RELOAD_NAME, 2184 {"enable-faster-location-reload", IDS_FLAGS_FASTER_LOCATION_RELOAD_NAME,
2168 IDS_FLAGS_FASTER_LOCATION_RELOAD_DESCRIPTION, kOsAll, 2185 IDS_FLAGS_FASTER_LOCATION_RELOAD_DESCRIPTION, kOsAll,
2169 FEATURE_VALUE_TYPE(features::kFasterLocationReload)}, 2186 FEATURE_VALUE_TYPE(features::kFasterLocationReload)},
2170 #if defined(OS_ANDROID) 2187 #if defined(OS_ANDROID)
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
2412 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2429 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2413 2430
2414 const FeatureEntry* GetFeatureEntries(size_t* count) { 2431 const FeatureEntry* GetFeatureEntries(size_t* count) {
2415 *count = arraysize(kFeatureEntries); 2432 *count = arraysize(kFeatureEntries);
2416 return kFeatureEntries; 2433 return kFeatureEntries;
2417 } 2434 }
2418 2435
2419 } // namespace testing 2436 } // namespace testing
2420 2437
2421 } // namespace about_flags 2438 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698