| OLD | NEW |
| 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 677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 688 kAutofillCreditCardPopupLayoutFeatureVariationDropdownItemHeight, | 688 kAutofillCreditCardPopupLayoutFeatureVariationDropdownItemHeight, |
| 689 arraysize( | 689 arraysize( |
| 690 kAutofillCreditCardPopupLayoutFeatureVariationDropdownItemHeight), | 690 kAutofillCreditCardPopupLayoutFeatureVariationDropdownItemHeight), |
| 691 nullptr}, | 691 nullptr}, |
| 692 {"Display credit card icon at start and increase dropdown item height", | 692 {"Display credit card icon at start and increase dropdown item height", |
| 693 kAutofillCreditCardPopupLayoutFeatureVariationExpanded, | 693 kAutofillCreditCardPopupLayoutFeatureVariationExpanded, |
| 694 arraysize(kAutofillCreditCardPopupLayoutFeatureVariationExpanded), | 694 arraysize(kAutofillCreditCardPopupLayoutFeatureVariationExpanded), |
| 695 nullptr}}; | 695 nullptr}}; |
| 696 #endif // OS_ANDROID | 696 #endif // OS_ANDROID |
| 697 | 697 |
| 698 #if defined(OS_ANDROID) |
| 699 const FeatureEntry::FeatureParam |
| 700 kAutofillCreditCardLastUsedDateFeatureVariationExpDate[] = { |
| 701 {"show_expiration_date", "true"}}; |
| 702 |
| 703 const FeatureEntry::FeatureParam |
| 704 kAutofillCreditCardLastUsedDateFeatureVariationTimeDetail[] = { |
| 705 {"show_time_detail", "true"}}; |
| 706 |
| 707 const FeatureEntry::FeatureParam |
| 708 kAutofillCreditCardLastUsedDateFeatureVariationExpDateAndTimeDetail[] = { |
| 709 {"show_expiration_date", "true"}, |
| 710 {"show_time_detail", "true"}}; |
| 711 |
| 712 const FeatureEntry::FeatureVariation |
| 713 kAutofillCreditCardLastUsedDateFeatureVariations[] = { |
| 714 {"Display expiration date", |
| 715 kAutofillCreditCardLastUsedDateFeatureVariationExpDate, |
| 716 arraysize( |
| 717 kAutofillCreditCardLastUsedDateFeatureVariationExpDate), |
| 718 nullptr}, |
| 719 {"Display time detail", |
| 720 kAutofillCreditCardLastUsedDateFeatureVariationTimeDetail, |
| 721 arraysize( |
| 722 kAutofillCreditCardLastUsedDateFeatureVariationTimeDetail), |
| 723 nullptr}, |
| 724 {"Display expiration date and time detail", |
| 725 kAutofillCreditCardLastUsedDateFeatureVariationExpDateAndTimeDetail, |
| 726 arraysize( |
| 727 kAutofillCreditCardLastUsedDateFeatureVariationExpDateAndTimeDetail), |
| 728 nullptr}}; |
| 729 #endif // OS_ANDROID |
| 730 |
| 698 // RECORDING USER METRICS FOR FLAGS: | 731 // RECORDING USER METRICS FOR FLAGS: |
| 699 // ----------------------------------------------------------------------------- | 732 // ----------------------------------------------------------------------------- |
| 700 // The first line of the entry is the internal name. | 733 // The first line of the entry is the internal name. |
| 701 // | 734 // |
| 702 // To add a new entry, add to the end of kFeatureEntries. There are two | 735 // To add a new entry, add to the end of kFeatureEntries. There are two |
| 703 // distinct types of entries: | 736 // distinct types of entries: |
| 704 // . SINGLE_VALUE: entry is either on or off. Use the SINGLE_VALUE_TYPE | 737 // . SINGLE_VALUE: entry is either on or off. Use the SINGLE_VALUE_TYPE |
| 705 // macro for this type supplying the command line to the macro. | 738 // macro for this type supplying the command line to the macro. |
| 706 // . MULTI_VALUE: a list of choices, the first of which should correspond to a | 739 // . MULTI_VALUE: a list of choices, the first of which should correspond to a |
| 707 // deactivated state for this lab (i.e. no command line option). To specify | 740 // deactivated state for this lab (i.e. no command line option). To specify |
| (...skipping 1477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2185 #endif // defined(OS_CHROMEOS) | 2218 #endif // defined(OS_CHROMEOS) |
| 2186 | 2219 |
| 2187 #if defined(OS_ANDROID) | 2220 #if defined(OS_ANDROID) |
| 2188 {"enable-expanded-autofill-credit-card-popup", | 2221 {"enable-expanded-autofill-credit-card-popup", |
| 2189 IDS_FLAGS_ENABLE_EXPANDED_AUTOFILL_CREDIT_CARD_POPUP_LAYOUT, | 2222 IDS_FLAGS_ENABLE_EXPANDED_AUTOFILL_CREDIT_CARD_POPUP_LAYOUT, |
| 2190 IDS_FLAGS_ENABLE_EXPANDED_AUTOFILL_CREDIT_CARD_POPUP_LAYOUT_DESCRIPTION, | 2223 IDS_FLAGS_ENABLE_EXPANDED_AUTOFILL_CREDIT_CARD_POPUP_LAYOUT_DESCRIPTION, |
| 2191 kOsAndroid, FEATURE_WITH_VARIATIONS_VALUE_TYPE( | 2224 kOsAndroid, FEATURE_WITH_VARIATIONS_VALUE_TYPE( |
| 2192 autofill::kAutofillCreditCardPopupLayout, | 2225 autofill::kAutofillCreditCardPopupLayout, |
| 2193 kAutofillCreditCardPopupLayoutFeatureVariations, | 2226 kAutofillCreditCardPopupLayoutFeatureVariations, |
| 2194 "AutofillCreditCardPopupLayout")}, | 2227 "AutofillCreditCardPopupLayout")}, |
| 2228 {"enable-autofill-credit-card-last-used-date-display", |
| 2229 IDS_FLAGS_ENABLE_AUTOFILL_CREDIT_CARD_LAST_USED_DATE_DISPLAY, |
| 2230 IDS_FLAGS_ENABLE_AUTOFILL_CREDIT_CARD_LAST_USED_DATE_DISPLAY_DESCRIPTION, |
| 2231 kOsAndroid, FEATURE_WITH_VARIATIONS_VALUE_TYPE( |
| 2232 autofill::kAutofillCreditCardLastUsedDateDisplay, |
| 2233 kAutofillCreditCardLastUsedDateFeatureVariations, |
| 2234 "AutofillCreditCardLastUsedDate")}, |
| 2195 {"native-android-history-manager", IDS_NATIVE_ANDROID_HISTORY_MANAGER, | 2235 {"native-android-history-manager", IDS_NATIVE_ANDROID_HISTORY_MANAGER, |
| 2196 IDS_NATIVE_ANDROID_HISTORY_MANAGER_DESCRIPTION, kOsAndroid, | 2236 IDS_NATIVE_ANDROID_HISTORY_MANAGER_DESCRIPTION, kOsAndroid, |
| 2197 FEATURE_VALUE_TYPE(chrome::android::kNativeAndroidHistoryManager)}, | 2237 FEATURE_VALUE_TYPE(chrome::android::kNativeAndroidHistoryManager)}, |
| 2198 #endif // OS_ANDROID | 2238 #endif // OS_ANDROID |
| 2199 {"enable-faster-location-reload", IDS_FLAGS_FASTER_LOCATION_RELOAD_NAME, | 2239 {"enable-faster-location-reload", IDS_FLAGS_FASTER_LOCATION_RELOAD_NAME, |
| 2200 IDS_FLAGS_FASTER_LOCATION_RELOAD_DESCRIPTION, kOsAll, | 2240 IDS_FLAGS_FASTER_LOCATION_RELOAD_DESCRIPTION, kOsAll, |
| 2201 FEATURE_VALUE_TYPE(features::kFasterLocationReload)}, | 2241 FEATURE_VALUE_TYPE(features::kFasterLocationReload)}, |
| 2202 #if defined(OS_ANDROID) | 2242 #if defined(OS_ANDROID) |
| 2203 {"lsd-permission-prompt", IDS_FLAGS_LSD_PERMISSION_PROMPT_NAME, | 2243 {"lsd-permission-prompt", IDS_FLAGS_LSD_PERMISSION_PROMPT_NAME, |
| 2204 IDS_FLAGS_LSD_PERMISSION_PROMPT_DESCRIPTION, kOsAndroid, | 2244 IDS_FLAGS_LSD_PERMISSION_PROMPT_DESCRIPTION, kOsAndroid, |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2406 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2446 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
| 2407 | 2447 |
| 2408 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2448 const FeatureEntry* GetFeatureEntries(size_t* count) { |
| 2409 *count = arraysize(kFeatureEntries); | 2449 *count = arraysize(kFeatureEntries); |
| 2410 return kFeatureEntries; | 2450 return kFeatureEntries; |
| 2411 } | 2451 } |
| 2412 | 2452 |
| 2413 } // namespace testing | 2453 } // namespace testing |
| 2414 | 2454 |
| 2415 } // namespace about_flags | 2455 } // namespace about_flags |
| OLD | NEW |