| 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 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 590 switches::kEnableWebFontsInterventionV2, | 590 switches::kEnableWebFontsInterventionV2, |
| 591 switches::kEnableWebFontsInterventionV2SwitchValueDisabled}, | 591 switches::kEnableWebFontsInterventionV2SwitchValueDisabled}, |
| 592 }; | 592 }; |
| 593 | 593 |
| 594 const FeatureEntry::Choice kSSLVersionMaxChoices[] = { | 594 const FeatureEntry::Choice kSSLVersionMaxChoices[] = { |
| 595 {IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, | 595 {IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, |
| 596 {IDS_FLAGS_SSL_VERSION_MAX_TLS12, switches::kSSLVersionMax, "tls1.2"}, | 596 {IDS_FLAGS_SSL_VERSION_MAX_TLS12, switches::kSSLVersionMax, "tls1.2"}, |
| 597 {IDS_FLAGS_SSL_VERSION_MAX_TLS13, switches::kSSLVersionMax, "tls1.3"}, | 597 {IDS_FLAGS_SSL_VERSION_MAX_TLS13, switches::kSSLVersionMax, "tls1.3"}, |
| 598 }; | 598 }; |
| 599 | 599 |
| 600 const FeatureEntry::Choice kSecurityChipChoices[] = { | |
| 601 {IDS_FLAGS_SECURITY_CHIP_DEFAULT, "", ""}, | |
| 602 {IDS_FLAGS_SECURITY_CHIP_SHOW_NONSECURE_ONLY, switches::kSecurityChip, | |
| 603 switches::kSecurityChipShowNonSecureOnly}, | |
| 604 {IDS_FLAGS_SECURITY_CHIP_SHOW_ALL, switches::kSecurityChip, | |
| 605 switches::kSecurityChipShowAll}, | |
| 606 }; | |
| 607 | |
| 608 const FeatureEntry::Choice kSecurityChipAnimationChoices[] = { | |
| 609 {IDS_FLAGS_SECURITY_CHIP_ANIMATION_DEFAULT, "", ""}, | |
| 610 {IDS_FLAGS_SECURITY_CHIP_ANIMATION_NONE, switches::kSecurityChipAnimation, | |
| 611 switches::kSecurityChipAnimationNone}, | |
| 612 {IDS_FLAGS_SECURITY_CHIP_ANIMATION_NONSECURE_ONLY, | |
| 613 switches::kSecurityChipAnimation, | |
| 614 switches::kSecurityChipAnimationNonSecureOnly}, | |
| 615 {IDS_FLAGS_SECURITY_CHIP_ANIMATION_ALL, switches::kSecurityChipAnimation, | |
| 616 switches::kSecurityChipAnimationAll}, | |
| 617 }; | |
| 618 | |
| 619 #if BUILDFLAG(ENABLE_WEBRTC) | 600 #if BUILDFLAG(ENABLE_WEBRTC) |
| 620 const FeatureEntry::Choice kDisableWebRtcHWEncodingChoices[] = { | 601 const FeatureEntry::Choice kDisableWebRtcHWEncodingChoices[] = { |
| 621 {IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", ""}, | 602 {IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", ""}, |
| 622 {IDS_FLAGS_WEBRTC_HW_ENCODING_ALL, switches::kDisableWebRtcHWEncoding, ""}, | 603 {IDS_FLAGS_WEBRTC_HW_ENCODING_ALL, switches::kDisableWebRtcHWEncoding, ""}, |
| 623 {IDS_FLAGS_WEBRTC_HW_ENCODING_VPX, switches::kDisableWebRtcHWEncoding, | 604 {IDS_FLAGS_WEBRTC_HW_ENCODING_VPX, switches::kDisableWebRtcHWEncoding, |
| 624 switches::kDisableWebRtcHWEncodingVPx}, | 605 switches::kDisableWebRtcHWEncodingVPx}, |
| 625 {IDS_FLAGS_WEBRTC_HW_ENCODING_H264, switches::kDisableWebRtcHWEncoding, | 606 {IDS_FLAGS_WEBRTC_HW_ENCODING_H264, switches::kDisableWebRtcHWEncoding, |
| 626 switches::kDisableWebRtcHWEncodingH264}, | 607 switches::kDisableWebRtcHWEncodingH264}, |
| 627 {IDS_FLAGS_WEBRTC_HW_ENCODING_NONE, switches::kDisableWebRtcHWEncoding, | 608 {IDS_FLAGS_WEBRTC_HW_ENCODING_NONE, switches::kDisableWebRtcHWEncoding, |
| 628 switches::kDisableWebRtcHWEncodingNone}, | 609 switches::kDisableWebRtcHWEncodingNone}, |
| (...skipping 1429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2058 {"saveas-menu-text-experiment", IDS_FLAGS_SAVEAS_MENU_LABEL_EXPERIMENT_NAME, | 2039 {"saveas-menu-text-experiment", IDS_FLAGS_SAVEAS_MENU_LABEL_EXPERIMENT_NAME, |
| 2059 IDS_FLAGS_SAVEAS_MENU_LABEL_EXPERIMENT_DESCRIPTION, kOsDesktop, | 2040 IDS_FLAGS_SAVEAS_MENU_LABEL_EXPERIMENT_DESCRIPTION, kOsDesktop, |
| 2060 SINGLE_VALUE_TYPE(switches::kEnableSaveAsMenuLabelExperiment)}, | 2041 SINGLE_VALUE_TYPE(switches::kEnableSaveAsMenuLabelExperiment)}, |
| 2061 {"enable-generic-sensor", IDS_FLAGS_ENABLE_GENERIC_SENSOR_NAME, | 2042 {"enable-generic-sensor", IDS_FLAGS_ENABLE_GENERIC_SENSOR_NAME, |
| 2062 IDS_FLAGS_ENABLE_GENERIC_SENSOR_DESCRIPTION, kOsAll, | 2043 IDS_FLAGS_ENABLE_GENERIC_SENSOR_DESCRIPTION, kOsAll, |
| 2063 FEATURE_VALUE_TYPE(features::kGenericSensor)}, | 2044 FEATURE_VALUE_TYPE(features::kGenericSensor)}, |
| 2064 {"expensive-background-timer-throttling", | 2045 {"expensive-background-timer-throttling", |
| 2065 IDS_FLAGS_EXPENSIVE_BACKGROUND_TIMER_THROTTLING_NAME, | 2046 IDS_FLAGS_EXPENSIVE_BACKGROUND_TIMER_THROTTLING_NAME, |
| 2066 IDS_FLAGS_EXPENSIVE_BACKGROUND_TIMER_THROTTLING_DESCRIPTION, kOsAll, | 2047 IDS_FLAGS_EXPENSIVE_BACKGROUND_TIMER_THROTTLING_DESCRIPTION, kOsAll, |
| 2067 FEATURE_VALUE_TYPE(features::kExpensiveBackgroundTimerThrottling)}, | 2048 FEATURE_VALUE_TYPE(features::kExpensiveBackgroundTimerThrottling)}, |
| 2068 {"security-chip", IDS_FLAGS_SECURITY_CHIP_NAME, | |
| 2069 IDS_FLAGS_SECURITY_CHIP_DESCRIPTION, kOsDesktop, | |
| 2070 MULTI_VALUE_TYPE(kSecurityChipChoices)}, | |
| 2071 {"security-chip-animation", IDS_FLAGS_SECURITY_CHIP_ANIMATION_NAME, | |
| 2072 IDS_FLAGS_SECURITY_CHIP_ANIMATION_DESCRIPTION, kOsDesktop, | |
| 2073 MULTI_VALUE_TYPE(kSecurityChipAnimationChoices)}, | |
| 2074 #if defined(OS_CHROMEOS) | 2049 #if defined(OS_CHROMEOS) |
| 2075 {"enumerate-audio-devices", IDS_FLAGS_ENABLE_ENUMERATING_AUDIO_DEVICES_NAME, | 2050 {"enumerate-audio-devices", IDS_FLAGS_ENABLE_ENUMERATING_AUDIO_DEVICES_NAME, |
| 2076 IDS_FLAGS_ENABLE_ENUMERATING_AUDIO_DEVICES_DESCRIPTION, kOsCrOS, | 2051 IDS_FLAGS_ENABLE_ENUMERATING_AUDIO_DEVICES_DESCRIPTION, kOsCrOS, |
| 2077 FEATURE_VALUE_TYPE(features::kEnumerateAudioDevices)}, | 2052 FEATURE_VALUE_TYPE(features::kEnumerateAudioDevices)}, |
| 2078 #endif // OS_CHROMEOS | 2053 #endif // OS_CHROMEOS |
| 2079 #if !defined(OS_ANDROID) | 2054 #if !defined(OS_ANDROID) |
| 2080 {"enable-default-media-session", | 2055 {"enable-default-media-session", |
| 2081 IDS_FLAGS_ENABLE_DEFAULT_MEDIA_SESSION_NAME, | 2056 IDS_FLAGS_ENABLE_DEFAULT_MEDIA_SESSION_NAME, |
| 2082 IDS_FLAGS_ENABLE_DEFAULT_MEDIA_SESSION_DESCRIPTION, kOsDesktop, | 2057 IDS_FLAGS_ENABLE_DEFAULT_MEDIA_SESSION_DESCRIPTION, kOsDesktop, |
| 2083 MULTI_VALUE_TYPE(kEnableDefaultMediaSessionChoices)}, | 2058 MULTI_VALUE_TYPE(kEnableDefaultMediaSessionChoices)}, |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2346 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2321 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
| 2347 | 2322 |
| 2348 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2323 const FeatureEntry* GetFeatureEntries(size_t* count) { |
| 2349 *count = arraysize(kFeatureEntries); | 2324 *count = arraysize(kFeatureEntries); |
| 2350 return kFeatureEntries; | 2325 return kFeatureEntries; |
| 2351 } | 2326 } |
| 2352 | 2327 |
| 2353 } // namespace testing | 2328 } // namespace testing |
| 2354 | 2329 |
| 2355 } // namespace about_flags | 2330 } // namespace about_flags |
| OLD | NEW |