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 1799 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1810 switches::kDisableImeThread)}, | 1810 switches::kDisableImeThread)}, |
1811 #endif // defined(OS_ANDROID) | 1811 #endif // defined(OS_ANDROID) |
1812 #if defined(OS_ANDROID) | 1812 #if defined(OS_ANDROID) |
1813 {"offline-pages-ntp", IDS_FLAGS_NTP_OFFLINE_PAGES_NAME, | 1813 {"offline-pages-ntp", IDS_FLAGS_NTP_OFFLINE_PAGES_NAME, |
1814 IDS_FLAGS_NTP_OFFLINE_PAGES_DESCRIPTION, kOsAndroid, | 1814 IDS_FLAGS_NTP_OFFLINE_PAGES_DESCRIPTION, kOsAndroid, |
1815 FEATURE_VALUE_TYPE(chrome::android::kNTPOfflinePagesFeature)}, | 1815 FEATURE_VALUE_TYPE(chrome::android::kNTPOfflinePagesFeature)}, |
1816 {"offlining-recent-pages", IDS_FLAGS_OFFLINING_RECENT_PAGES_NAME, | 1816 {"offlining-recent-pages", IDS_FLAGS_OFFLINING_RECENT_PAGES_NAME, |
1817 IDS_FLAGS_OFFLINING_RECENT_PAGES_DESCRIPTION, kOsAndroid, | 1817 IDS_FLAGS_OFFLINING_RECENT_PAGES_DESCRIPTION, kOsAndroid, |
1818 FEATURE_VALUE_TYPE(offline_pages::kOffliningRecentPagesFeature)}, | 1818 FEATURE_VALUE_TYPE(offline_pages::kOffliningRecentPagesFeature)}, |
1819 #endif // defined(OS_ANDROID) | 1819 #endif // defined(OS_ANDROID) |
| 1820 #if defined(OS_CHROMEOS) |
| 1821 {"enable-experimental-accessibility-features", |
| 1822 IDS_FLAGS_EXPERIMENTAL_ACCESSIBILITY_FEATURES_NAME, |
| 1823 IDS_FLAGS_EXPERIMENTAL_ACCESSIBILITY_FEATURES_DESCRIPTION, kOsCrOS, |
| 1824 SINGLE_VALUE_TYPE( |
| 1825 chromeos::switches::kEnableExperimentalAccessibilityFeatures)}, |
| 1826 #endif |
1820 // NOTE: Adding new command-line switches requires adding corresponding | 1827 // NOTE: Adding new command-line switches requires adding corresponding |
1821 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 1828 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
1822 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 1829 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
1823 }; | 1830 }; |
1824 | 1831 |
1825 class FlagsStateSingleton { | 1832 class FlagsStateSingleton { |
1826 public: | 1833 public: |
1827 FlagsStateSingleton() | 1834 FlagsStateSingleton() |
1828 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} | 1835 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} |
1829 ~FlagsStateSingleton() {} | 1836 ~FlagsStateSingleton() {} |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2019 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2026 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
2020 | 2027 |
2021 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2028 const FeatureEntry* GetFeatureEntries(size_t* count) { |
2022 *count = arraysize(kFeatureEntries); | 2029 *count = arraysize(kFeatureEntries); |
2023 return kFeatureEntries; | 2030 return kFeatureEntries; |
2024 } | 2031 } |
2025 | 2032 |
2026 } // namespace testing | 2033 } // namespace testing |
2027 | 2034 |
2028 } // namespace about_flags | 2035 } // namespace about_flags |
OLD | NEW |