| 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 2561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2572 {"lsd-permission-prompt", flag_descriptions::kLsdPermissionPromptName, | 2572 {"lsd-permission-prompt", flag_descriptions::kLsdPermissionPromptName, |
| 2573 flag_descriptions::kLsdPermissionPromptDescription, kOsAndroid, | 2573 flag_descriptions::kLsdPermissionPromptDescription, kOsAndroid, |
| 2574 FEATURE_VALUE_TYPE(features::kLsdPermissionPrompt)}, | 2574 FEATURE_VALUE_TYPE(features::kLsdPermissionPrompt)}, |
| 2575 #endif | 2575 #endif |
| 2576 | 2576 |
| 2577 #if defined(OS_CHROMEOS) | 2577 #if defined(OS_CHROMEOS) |
| 2578 {"enable-touchscreen-calibration", | 2578 {"enable-touchscreen-calibration", |
| 2579 flag_descriptions::kTouchscreenCalibrationName, | 2579 flag_descriptions::kTouchscreenCalibrationName, |
| 2580 flag_descriptions::kTouchscreenCalibrationDescription, kOsCrOS, | 2580 flag_descriptions::kTouchscreenCalibrationDescription, kOsCrOS, |
| 2581 SINGLE_VALUE_TYPE(chromeos::switches::kEnableTouchCalibrationSetting)}, | 2581 SINGLE_VALUE_TYPE(chromeos::switches::kEnableTouchCalibrationSetting)}, |
| 2582 #endif // defined(OS_CHROMEOS) | 2582 #endif // defined(OS_CHROMEOS) |
| 2583 | 2583 |
| 2584 #if defined(OS_WIN) | 2584 #if defined(OS_WIN) |
| 2585 {"gdi-text-printing", flag_descriptions::kGdiTextPrinting, | 2585 {"gdi-text-printing", flag_descriptions::kGdiTextPrinting, |
| 2586 flag_descriptions::kGdiTextPrintingDescription, kOsWin, | 2586 flag_descriptions::kGdiTextPrintingDescription, kOsWin, |
| 2587 FEATURE_VALUE_TYPE(features::kGdiTextPrinting)}, | 2587 FEATURE_VALUE_TYPE(features::kGdiTextPrinting)}, |
| 2588 {"postscript-printing", flag_descriptions::kPostscriptPrinting, | 2588 {"postscript-printing", flag_descriptions::kPostscriptPrinting, |
| 2589 flag_descriptions::kPostscriptPrintingDescription, kOsWin, | 2589 flag_descriptions::kPostscriptPrintingDescription, kOsWin, |
| 2590 FEATURE_VALUE_TYPE(features::kPostScriptPrinting)}, | 2590 FEATURE_VALUE_TYPE(features::kPostScriptPrinting)}, |
| 2591 #endif // defined(OS_WIN) | 2591 #endif // defined(OS_WIN) |
| 2592 | 2592 |
| 2593 #if defined(OS_CHROMEOS) | 2593 #if defined(OS_CHROMEOS) |
| 2594 {"show-arc-files-app", flag_descriptions::kShowArcFilesAppName, | 2594 {"show-arc-files-app", flag_descriptions::kShowArcFilesAppName, |
| 2595 flag_descriptions::kShowArcFilesAppDescription, kOsCrOS, | 2595 flag_descriptions::kShowArcFilesAppDescription, kOsCrOS, |
| 2596 FEATURE_VALUE_TYPE(arc::kShowArcFilesAppFeature)}, | 2596 FEATURE_VALUE_TYPE(arc::kShowArcFilesAppFeature)}, |
| 2597 #endif // defined(OS_CHROMEOS) | 2597 #endif // defined(OS_CHROMEOS) |
| 2598 | 2598 |
| 2599 #if defined(OS_CHROMEOS) | 2599 #if defined(OS_CHROMEOS) |
| 2600 {"force-enable-stylus-tools", | 2600 {"force-enable-stylus-tools", |
| 2601 flag_descriptions::kForceEnableStylusToolsName, | 2601 flag_descriptions::kForceEnableStylusToolsName, |
| 2602 flag_descriptions::kForceEnableStylusToolsDescription, kOsCrOS, | 2602 flag_descriptions::kForceEnableStylusToolsDescription, kOsCrOS, |
| 2603 SINGLE_VALUE_TYPE(ash::switches::kAshForceEnablePalette)}, | 2603 SINGLE_VALUE_TYPE(ash::switches::kAshForceEnablePalette)}, |
| 2604 #endif // defined(OS_CHROMEOS) | 2604 #endif // defined(OS_CHROMEOS) |
| 2605 | 2605 |
| 2606 {"enable-midi-manager-dynamic-instantiation", | 2606 {"enable-midi-manager-dynamic-instantiation", |
| 2607 flag_descriptions::kEnableMidiManagerDynamicInstantiationName, | 2607 flag_descriptions::kEnableMidiManagerDynamicInstantiationName, |
| 2608 flag_descriptions::kEnableMidiManagerDynamicInstantiationDescription, | 2608 flag_descriptions::kEnableMidiManagerDynamicInstantiationDescription, |
| 2609 kOsAll, | 2609 kOsAll, |
| 2610 FEATURE_VALUE_TYPE(midi::features::kMidiManagerDynamicInstantiation)}, | 2610 FEATURE_VALUE_TYPE(midi::features::kMidiManagerDynamicInstantiation)}, |
| 2611 | 2611 |
| 2612 #if defined(OS_WIN) | 2612 #if defined(OS_WIN) |
| 2613 {"new-usb-backend", flag_descriptions::kNewUsbBackendName, | 2613 {"new-usb-backend", flag_descriptions::kNewUsbBackendName, |
| 2614 flag_descriptions::kNewUsbBackendDescription, kOsWin, | 2614 flag_descriptions::kNewUsbBackendDescription, kOsWin, |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2761 {"enable-clipboard-provider", | 2761 {"enable-clipboard-provider", |
| 2762 flag_descriptions::kEnableOmniboxClipboardProviderName, | 2762 flag_descriptions::kEnableOmniboxClipboardProviderName, |
| 2763 flag_descriptions::kEnableOmniboxClipboardProviderDescription, kOsAndroid, | 2763 flag_descriptions::kEnableOmniboxClipboardProviderDescription, kOsAndroid, |
| 2764 FEATURE_VALUE_TYPE(omnibox::kEnableClipboardProvider)}, | 2764 FEATURE_VALUE_TYPE(omnibox::kEnableClipboardProvider)}, |
| 2765 #endif | 2765 #endif |
| 2766 | 2766 |
| 2767 {"autoplay-policy", flag_descriptions::kAutoplayPolicyName, | 2767 {"autoplay-policy", flag_descriptions::kAutoplayPolicyName, |
| 2768 flag_descriptions::kAutoplayPolicyDescription, kOsAll, | 2768 flag_descriptions::kAutoplayPolicyDescription, kOsAll, |
| 2769 MULTI_VALUE_TYPE(kAutoplayPolicyChoices)}, | 2769 MULTI_VALUE_TYPE(kAutoplayPolicyChoices)}, |
| 2770 | 2770 |
| 2771 #if defined(TOOLKIT_VIEWS) || (defined(OS_MACOSX) && !defined(OS_IOS)) |
| 2772 {"show-cert-link", flag_descriptions::kShowCertLinkOnPageInfoName, |
| 2773 flag_descriptions::kShowCertLinkOnPageInfoDescription, kOsDesktop, |
| 2774 SINGLE_VALUE_TYPE(switches::kShowCertLink)}, |
| 2775 #endif |
| 2776 |
| 2771 // NOTE: Adding new command-line switches requires adding corresponding | 2777 // NOTE: Adding new command-line switches requires adding corresponding |
| 2772 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 2778 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
| 2773 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 2779 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
| 2774 }; | 2780 }; |
| 2775 | 2781 |
| 2776 class FlagsStateSingleton { | 2782 class FlagsStateSingleton { |
| 2777 public: | 2783 public: |
| 2778 FlagsStateSingleton() | 2784 FlagsStateSingleton() |
| 2779 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} | 2785 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} |
| 2780 ~FlagsStateSingleton() {} | 2786 ~FlagsStateSingleton() {} |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2986 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2992 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
| 2987 | 2993 |
| 2988 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2994 const FeatureEntry* GetFeatureEntries(size_t* count) { |
| 2989 *count = arraysize(kFeatureEntries); | 2995 *count = arraysize(kFeatureEntries); |
| 2990 return kFeatureEntries; | 2996 return kFeatureEntries; |
| 2991 } | 2997 } |
| 2992 | 2998 |
| 2993 } // namespace testing | 2999 } // namespace testing |
| 2994 | 3000 |
| 2995 } // namespace about_flags | 3001 } // namespace about_flags |
| OLD | NEW |