| 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 2624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2635 flag_descriptions::kEnableZipArchiverOnFileManagerDescription, kOsCrOS, | 2635 flag_descriptions::kEnableZipArchiverOnFileManagerDescription, kOsCrOS, |
| 2636 SINGLE_VALUE_TYPE(chromeos::switches::kEnableZipArchiverOnFileManager)}, | 2636 SINGLE_VALUE_TYPE(chromeos::switches::kEnableZipArchiverOnFileManager)}, |
| 2637 #endif // OS_CHROMEOS | 2637 #endif // OS_CHROMEOS |
| 2638 | 2638 |
| 2639 #if defined(OS_ANDROID) | 2639 #if defined(OS_ANDROID) |
| 2640 {"enable-copyless-paste", flag_descriptions::kEnableCopylessPasteName, | 2640 {"enable-copyless-paste", flag_descriptions::kEnableCopylessPasteName, |
| 2641 flag_descriptions::kEnableCopylessPasteDescription, kOsAndroid, | 2641 flag_descriptions::kEnableCopylessPasteDescription, kOsAndroid, |
| 2642 FEATURE_VALUE_TYPE(features::kCopylessPaste)}, | 2642 FEATURE_VALUE_TYPE(features::kCopylessPaste)}, |
| 2643 #endif | 2643 #endif |
| 2644 | 2644 |
| 2645 #if defined(OS_CHROMEOS) |
| 2646 {"quick-unlock-pin-signin", flag_descriptions::kQuickUnlockPinSignin, |
| 2647 flag_descriptions::kQuickUnlockPinSigninDescription, kOsCrOS, |
| 2648 FEATURE_VALUE_TYPE(features::kQuickUnlockPinSignin)}, |
| 2649 #endif // OS_CHROMEOS |
| 2650 |
| 2645 // NOTE: Adding new command-line switches requires adding corresponding | 2651 // NOTE: Adding new command-line switches requires adding corresponding |
| 2646 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 2652 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
| 2647 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 2653 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
| 2648 }; | 2654 }; |
| 2649 | 2655 |
| 2650 class FlagsStateSingleton { | 2656 class FlagsStateSingleton { |
| 2651 public: | 2657 public: |
| 2652 FlagsStateSingleton() | 2658 FlagsStateSingleton() |
| 2653 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} | 2659 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} |
| 2654 ~FlagsStateSingleton() {} | 2660 ~FlagsStateSingleton() {} |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2851 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2857 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
| 2852 | 2858 |
| 2853 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2859 const FeatureEntry* GetFeatureEntries(size_t* count) { |
| 2854 *count = arraysize(kFeatureEntries); | 2860 *count = arraysize(kFeatureEntries); |
| 2855 return kFeatureEntries; | 2861 return kFeatureEntries; |
| 2856 } | 2862 } |
| 2857 | 2863 |
| 2858 } // namespace testing | 2864 } // namespace testing |
| 2859 | 2865 |
| 2860 } // namespace about_flags | 2866 } // namespace about_flags |
| OLD | NEW |