| 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 2708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2719 {"enable-copyless-paste", flag_descriptions::kEnableCopylessPasteName, | 2719 {"enable-copyless-paste", flag_descriptions::kEnableCopylessPasteName, |
| 2720 flag_descriptions::kEnableCopylessPasteDescription, kOsAndroid, | 2720 flag_descriptions::kEnableCopylessPasteDescription, kOsAndroid, |
| 2721 FEATURE_VALUE_TYPE(features::kCopylessPaste)}, | 2721 FEATURE_VALUE_TYPE(features::kCopylessPaste)}, |
| 2722 #endif | 2722 #endif |
| 2723 | 2723 |
| 2724 {"enable-color-correct-rendering", | 2724 {"enable-color-correct-rendering", |
| 2725 flag_descriptions::kColorCorrectRenderingName, | 2725 flag_descriptions::kColorCorrectRenderingName, |
| 2726 flag_descriptions::kColorCorrectRenderingDescription, kOsAll, | 2726 flag_descriptions::kColorCorrectRenderingDescription, kOsAll, |
| 2727 MULTI_VALUE_TYPE(kColorCorrectRenderingChoices)}, | 2727 MULTI_VALUE_TYPE(kColorCorrectRenderingChoices)}, |
| 2728 | 2728 |
| 2729 #if defined(OS_CHROMEOS) |
| 2730 {"quick-unlock-pin-signin", flag_descriptions::kQuickUnlockPinSignin, |
| 2731 flag_descriptions::kQuickUnlockPinSigninDescription, kOsCrOS, |
| 2732 FEATURE_VALUE_TYPE(features::kQuickUnlockPinSignin)}, |
| 2733 #endif // OS_CHROMEOS |
| 2734 |
| 2729 // NOTE: Adding new command-line switches requires adding corresponding | 2735 // NOTE: Adding new command-line switches requires adding corresponding |
| 2730 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 2736 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
| 2731 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 2737 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
| 2732 }; | 2738 }; |
| 2733 | 2739 |
| 2734 class FlagsStateSingleton { | 2740 class FlagsStateSingleton { |
| 2735 public: | 2741 public: |
| 2736 FlagsStateSingleton() | 2742 FlagsStateSingleton() |
| 2737 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} | 2743 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} |
| 2738 ~FlagsStateSingleton() {} | 2744 ~FlagsStateSingleton() {} |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2935 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2941 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
| 2936 | 2942 |
| 2937 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2943 const FeatureEntry* GetFeatureEntries(size_t* count) { |
| 2938 *count = arraysize(kFeatureEntries); | 2944 *count = arraysize(kFeatureEntries); |
| 2939 return kFeatureEntries; | 2945 return kFeatureEntries; |
| 2940 } | 2946 } |
| 2941 | 2947 |
| 2942 } // namespace testing | 2948 } // namespace testing |
| 2943 | 2949 |
| 2944 } // namespace about_flags | 2950 } // namespace about_flags |
| OLD | NEW |