| 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 2596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2607 | 2607 |
| 2608 #if defined(OS_CHROMEOS) | 2608 #if defined(OS_CHROMEOS) |
| 2609 {"enable-zip-archiver-on-file-manager", | 2609 {"enable-zip-archiver-on-file-manager", |
| 2610 flag_descriptions::kEnableZipArchiverOnFileManagerName, | 2610 flag_descriptions::kEnableZipArchiverOnFileManagerName, |
| 2611 flag_descriptions::kEnableZipArchiverOnFileManagerDescription, | 2611 flag_descriptions::kEnableZipArchiverOnFileManagerDescription, |
| 2612 kOsCrOS, | 2612 kOsCrOS, |
| 2613 SINGLE_VALUE_TYPE( | 2613 SINGLE_VALUE_TYPE( |
| 2614 chromeos::switches::kEnableZipArchiverOnFileManager)}, | 2614 chromeos::switches::kEnableZipArchiverOnFileManager)}, |
| 2615 #endif // OS_CHROMEOS | 2615 #endif // OS_CHROMEOS |
| 2616 | 2616 |
| 2617 #if defined(OS_ANDROID) |
| 2618 {"enable-copyless-paste", flag_descriptions::kEnableCopylessPasteName, |
| 2619 flag_descriptions::kEnableCopylessPasteDescription, kOsAndroid, |
| 2620 FEATURE_VALUE_TYPE(features::kCopylessPaste)}, |
| 2621 #endif |
| 2622 |
| 2617 // NOTE: Adding new command-line switches requires adding corresponding | 2623 // NOTE: Adding new command-line switches requires adding corresponding |
| 2618 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 2624 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
| 2619 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 2625 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
| 2620 }; | 2626 }; |
| 2621 | 2627 |
| 2622 class FlagsStateSingleton { | 2628 class FlagsStateSingleton { |
| 2623 public: | 2629 public: |
| 2624 FlagsStateSingleton() | 2630 FlagsStateSingleton() |
| 2625 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} | 2631 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} |
| 2626 ~FlagsStateSingleton() {} | 2632 ~FlagsStateSingleton() {} |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2823 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2829 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
| 2824 | 2830 |
| 2825 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2831 const FeatureEntry* GetFeatureEntries(size_t* count) { |
| 2826 *count = arraysize(kFeatureEntries); | 2832 *count = arraysize(kFeatureEntries); |
| 2827 return kFeatureEntries; | 2833 return kFeatureEntries; |
| 2828 } | 2834 } |
| 2829 | 2835 |
| 2830 } // namespace testing | 2836 } // namespace testing |
| 2831 | 2837 |
| 2832 } // namespace about_flags | 2838 } // namespace about_flags |
| OLD | NEW |