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 2435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2446 #endif // defined(OS_CHROMEOS) | 2446 #endif // defined(OS_CHROMEOS) |
2447 | 2447 |
2448 #if defined(OS_ANDROID) | 2448 #if defined(OS_ANDROID) |
2449 {"enable-expanded-autofill-credit-card-popup", | 2449 {"enable-expanded-autofill-credit-card-popup", |
2450 flag_descriptions::kEnableExpandedAutofillCreditCardPopupLayout, | 2450 flag_descriptions::kEnableExpandedAutofillCreditCardPopupLayout, |
2451 flag_descriptions::kEnableExpandedAutofillCreditCardPopupLayoutDescription, | 2451 flag_descriptions::kEnableExpandedAutofillCreditCardPopupLayoutDescription, |
2452 kOsAndroid, | 2452 kOsAndroid, |
2453 FEATURE_WITH_PARAMS_VALUE_TYPE( | 2453 FEATURE_WITH_PARAMS_VALUE_TYPE( |
2454 autofill::kAutofillCreditCardPopupLayout, | 2454 autofill::kAutofillCreditCardPopupLayout, |
2455 kAutofillCreditCardPopupLayoutFeatureVariations, | 2455 kAutofillCreditCardPopupLayoutFeatureVariations, |
2456 "AutofillCreditCardPopupLayout")}, | 2456 // Must be AutofillCreditCardDropdownVariations to prevent DCHECK crash |
| 2457 // when the flag is manually enabled in a local build. |
| 2458 "AutofillCreditCardDropdownVariations")}, |
2457 {"native-android-history-manager", | 2459 {"native-android-history-manager", |
2458 flag_descriptions::kNativeAndroidHistoryManager, | 2460 flag_descriptions::kNativeAndroidHistoryManager, |
2459 flag_descriptions::kNativeAndroidHistoryManagerDescription, kOsAndroid, | 2461 flag_descriptions::kNativeAndroidHistoryManagerDescription, kOsAndroid, |
2460 FEATURE_VALUE_TYPE(features::kNativeAndroidHistoryManager)}, | 2462 FEATURE_VALUE_TYPE(features::kNativeAndroidHistoryManager)}, |
2461 #endif // OS_ANDROID | 2463 #endif // OS_ANDROID |
| 2464 |
2462 {"enable-autofill-credit-card-last-used-date-display", | 2465 {"enable-autofill-credit-card-last-used-date-display", |
2463 flag_descriptions::kEnableAutofillCreditCardLastUsedDateDisplay, | 2466 flag_descriptions::kEnableAutofillCreditCardLastUsedDateDisplay, |
2464 flag_descriptions::kEnableAutofillCreditCardLastUsedDateDisplayDescription, | 2467 flag_descriptions::kEnableAutofillCreditCardLastUsedDateDisplayDescription, |
2465 kOsAll, | 2468 kOsAll, |
2466 FEATURE_WITH_PARAMS_VALUE_TYPE( | 2469 FEATURE_WITH_PARAMS_VALUE_TYPE( |
2467 autofill::kAutofillCreditCardLastUsedDateDisplay, | 2470 autofill::kAutofillCreditCardLastUsedDateDisplay, |
2468 kAutofillCreditCardLastUsedDateFeatureVariations, | 2471 kAutofillCreditCardLastUsedDateFeatureVariations, |
2469 "AutofillCreditCardLastUsedDate")}, | 2472 // Must be AutofillCreditCardDropdownVariations to prevent DCHECK crash |
| 2473 // when the flag is manually enabled in a local build. |
| 2474 "AutofillCreditCardDropdownVariations")}, |
| 2475 |
| 2476 {"enable-autofill-credit-card-bank-name-display", |
| 2477 flag_descriptions::kEnableAutofillCreditCardBankNameDisplay, |
| 2478 flag_descriptions::kEnableAutofillCreditCardBankNameDisplayDescription, |
| 2479 kOsAll, FEATURE_VALUE_TYPE(autofill::kAutofillCreditCardBankNameDisplay)}, |
| 2480 |
2470 #if defined(OS_WIN) | 2481 #if defined(OS_WIN) |
2471 {"windows10-custom-titlebar", | 2482 {"windows10-custom-titlebar", |
2472 flag_descriptions::kWindows10CustomTitlebarName, | 2483 flag_descriptions::kWindows10CustomTitlebarName, |
2473 flag_descriptions::kWindows10CustomTitlebarDescription, kOsWin, | 2484 flag_descriptions::kWindows10CustomTitlebarDescription, kOsWin, |
2474 SINGLE_VALUE_TYPE(switches::kWindows10CustomTitlebar)}, | 2485 SINGLE_VALUE_TYPE(switches::kWindows10CustomTitlebar)}, |
2475 #endif // OS_WIN | 2486 #endif // OS_WIN |
2476 | 2487 |
2477 #if defined(OS_ANDROID) | 2488 #if defined(OS_ANDROID) |
2478 {"lsd-permission-prompt", flag_descriptions::kLsdPermissionPromptName, | 2489 {"lsd-permission-prompt", flag_descriptions::kLsdPermissionPromptName, |
2479 flag_descriptions::kLsdPermissionPromptDescription, kOsAndroid, | 2490 flag_descriptions::kLsdPermissionPromptDescription, kOsAndroid, |
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2851 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2862 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
2852 | 2863 |
2853 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2864 const FeatureEntry* GetFeatureEntries(size_t* count) { |
2854 *count = arraysize(kFeatureEntries); | 2865 *count = arraysize(kFeatureEntries); |
2855 return kFeatureEntries; | 2866 return kFeatureEntries; |
2856 } | 2867 } |
2857 | 2868 |
2858 } // namespace testing | 2869 } // namespace testing |
2859 | 2870 |
2860 } // namespace about_flags | 2871 } // namespace about_flags |
OLD | NEW |