| 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 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 const FeatureEntry::Choice kEnableGpuRasterizationChoices[] = { | 382 const FeatureEntry::Choice kEnableGpuRasterizationChoices[] = { |
| 383 {flags_ui::kGenericExperimentChoiceDefault, "", ""}, | 383 {flags_ui::kGenericExperimentChoiceDefault, "", ""}, |
| 384 {flags_ui::kGenericExperimentChoiceEnabled, | 384 {flags_ui::kGenericExperimentChoiceEnabled, |
| 385 switches::kEnableGpuRasterization, ""}, | 385 switches::kEnableGpuRasterization, ""}, |
| 386 {flags_ui::kGenericExperimentChoiceDisabled, | 386 {flags_ui::kGenericExperimentChoiceDisabled, |
| 387 switches::kDisableGpuRasterization, ""}, | 387 switches::kDisableGpuRasterization, ""}, |
| 388 {flag_descriptions::kForceGpuRasterization, | 388 {flag_descriptions::kForceGpuRasterization, |
| 389 switches::kForceGpuRasterization, ""}, | 389 switches::kForceGpuRasterization, ""}, |
| 390 }; | 390 }; |
| 391 | 391 |
| 392 const FeatureEntry::Choice kColorCorrectRenderingChoices[] = { | |
| 393 {flags_ui::kGenericExperimentChoiceDefault, "", ""}, | |
| 394 {flags_ui::kGenericExperimentChoiceEnabled, | |
| 395 switches::kEnableColorCorrectRendering, ""}, | |
| 396 {flags_ui::kGenericExperimentChoiceDisabled, "", ""}, | |
| 397 }; | |
| 398 | |
| 399 const FeatureEntry::Choice kEnableWebGL2Choices[] = { | 392 const FeatureEntry::Choice kEnableWebGL2Choices[] = { |
| 400 {flags_ui::kGenericExperimentChoiceDefault, "", ""}, | 393 {flags_ui::kGenericExperimentChoiceDefault, "", ""}, |
| 401 {flags_ui::kGenericExperimentChoiceEnabled, switches::kEnableES3APIs, ""}, | 394 {flags_ui::kGenericExperimentChoiceEnabled, switches::kEnableES3APIs, ""}, |
| 402 {flags_ui::kGenericExperimentChoiceDisabled, switches::kDisableES3APIs, ""}, | 395 {flags_ui::kGenericExperimentChoiceDisabled, switches::kDisableES3APIs, ""}, |
| 403 }; | 396 }; |
| 404 | 397 |
| 405 #if defined(OS_CHROMEOS) | 398 #if defined(OS_CHROMEOS) |
| 406 const FeatureEntry::Choice kMemoryPressureThresholdChoices[] = { | 399 const FeatureEntry::Choice kMemoryPressureThresholdChoices[] = { |
| 407 {flags_ui::kGenericExperimentChoiceDefault, "", ""}, | 400 {flags_ui::kGenericExperimentChoiceDefault, "", ""}, |
| 408 {flag_descriptions::kConservativeThresholds, | 401 {flag_descriptions::kConservativeThresholds, |
| (...skipping 2528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2937 #endif | 2930 #endif |
| 2938 | 2931 |
| 2939 {"omnibox-display-title-for-current-url", | 2932 {"omnibox-display-title-for-current-url", |
| 2940 flag_descriptions::kOmniboxDisplayTitleForCurrentUrlName, | 2933 flag_descriptions::kOmniboxDisplayTitleForCurrentUrlName, |
| 2941 flag_descriptions::kOmniboxDisplayTitleForCurrentUrlDescription, | 2934 flag_descriptions::kOmniboxDisplayTitleForCurrentUrlDescription, |
| 2942 kOsDesktop, FEATURE_VALUE_TYPE(omnibox::kDisplayTitleForCurrentUrl)}, | 2935 kOsDesktop, FEATURE_VALUE_TYPE(omnibox::kDisplayTitleForCurrentUrl)}, |
| 2943 | 2936 |
| 2944 {"enable-color-correct-rendering", | 2937 {"enable-color-correct-rendering", |
| 2945 flag_descriptions::kColorCorrectRenderingName, | 2938 flag_descriptions::kColorCorrectRenderingName, |
| 2946 flag_descriptions::kColorCorrectRenderingDescription, kOsAll, | 2939 flag_descriptions::kColorCorrectRenderingDescription, kOsAll, |
| 2947 MULTI_VALUE_TYPE(kColorCorrectRenderingChoices)}, | 2940 FEATURE_VALUE_TYPE(features::kColorCorrectRendering)}, |
| 2948 | 2941 |
| 2949 #if defined(OS_CHROMEOS) | 2942 #if defined(OS_CHROMEOS) |
| 2950 {"quick-unlock-pin-signin", flag_descriptions::kQuickUnlockPinSignin, | 2943 {"quick-unlock-pin-signin", flag_descriptions::kQuickUnlockPinSignin, |
| 2951 flag_descriptions::kQuickUnlockPinSigninDescription, kOsCrOS, | 2944 flag_descriptions::kQuickUnlockPinSigninDescription, kOsCrOS, |
| 2952 FEATURE_VALUE_TYPE(features::kQuickUnlockPinSignin)}, | 2945 FEATURE_VALUE_TYPE(features::kQuickUnlockPinSignin)}, |
| 2953 #endif // OS_CHROMEOS | 2946 #endif // OS_CHROMEOS |
| 2954 | 2947 |
| 2955 #if defined(OS_ANDROID) | 2948 #if defined(OS_ANDROID) |
| 2956 {"enable-webnfc", flag_descriptions::kEnableWebNfcName, | 2949 {"enable-webnfc", flag_descriptions::kEnableWebNfcName, |
| 2957 flag_descriptions::kEnableWebNfcDescription, kOsAndroid, | 2950 flag_descriptions::kEnableWebNfcDescription, kOsAndroid, |
| (...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3314 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 3307 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
| 3315 | 3308 |
| 3316 const FeatureEntry* GetFeatureEntries(size_t* count) { | 3309 const FeatureEntry* GetFeatureEntries(size_t* count) { |
| 3317 *count = arraysize(kFeatureEntries); | 3310 *count = arraysize(kFeatureEntries); |
| 3318 return kFeatureEntries; | 3311 return kFeatureEntries; |
| 3319 } | 3312 } |
| 3320 | 3313 |
| 3321 } // namespace testing | 3314 } // namespace testing |
| 3322 | 3315 |
| 3323 } // namespace about_flags | 3316 } // namespace about_flags |
| OLD | NEW |