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 1813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1824 password_manager::features::kProtectSyncCredentialOnReauth)}, | 1824 password_manager::features::kProtectSyncCredentialOnReauth)}, |
1825 #if defined(OS_CHROMEOS) | 1825 #if defined(OS_CHROMEOS) |
1826 {"enable-experimental-accessibility-features", | 1826 {"enable-experimental-accessibility-features", |
1827 IDS_FLAGS_EXPERIMENTAL_ACCESSIBILITY_FEATURES_NAME, | 1827 IDS_FLAGS_EXPERIMENTAL_ACCESSIBILITY_FEATURES_NAME, |
1828 IDS_FLAGS_EXPERIMENTAL_ACCESSIBILITY_FEATURES_DESCRIPTION, kOsCrOS, | 1828 IDS_FLAGS_EXPERIMENTAL_ACCESSIBILITY_FEATURES_DESCRIPTION, kOsCrOS, |
1829 SINGLE_VALUE_TYPE( | 1829 SINGLE_VALUE_TYPE( |
1830 chromeos::switches::kEnableExperimentalAccessibilityFeatures)}, | 1830 chromeos::switches::kEnableExperimentalAccessibilityFeatures)}, |
1831 {"opt-in-ime-menu", IDS_FLAGS_ENABLE_IME_MENU_NAME, | 1831 {"opt-in-ime-menu", IDS_FLAGS_ENABLE_IME_MENU_NAME, |
1832 IDS_FLAGS_ENABLE_IME_MENU_DESCRIPTION, kOsCrOS, | 1832 IDS_FLAGS_ENABLE_IME_MENU_DESCRIPTION, kOsCrOS, |
1833 FEATURE_VALUE_TYPE(features::kOptInImeMenu)}, | 1833 FEATURE_VALUE_TYPE(features::kOptInImeMenu)}, |
| 1834 {"enable-system-timezone-automatic-detection", |
| 1835 IDS_FLAGS_ENABLE_SYSTEM_TIMEZONE_AUTOMATIC_DETECTION_NAME, |
| 1836 IDS_FLAGS_ENABLE_SYSTEM_TIMEZONE_AUTOMATIC_DETECTION_DESCRIPTION, kOsCrOS, |
| 1837 SINGLE_VALUE_TYPE( |
| 1838 chromeos::switches::kEnableSystemTimezoneAutomaticDetectionPolicy)}, |
1834 #endif | 1839 #endif |
1835 // NOTE: Adding new command-line switches requires adding corresponding | 1840 // NOTE: Adding new command-line switches requires adding corresponding |
1836 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 1841 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
1837 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 1842 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
1838 }; | 1843 }; |
1839 | 1844 |
1840 class FlagsStateSingleton { | 1845 class FlagsStateSingleton { |
1841 public: | 1846 public: |
1842 FlagsStateSingleton() | 1847 FlagsStateSingleton() |
1843 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} | 1848 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2034 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2039 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
2035 | 2040 |
2036 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2041 const FeatureEntry* GetFeatureEntries(size_t* count) { |
2037 *count = arraysize(kFeatureEntries); | 2042 *count = arraysize(kFeatureEntries); |
2038 return kFeatureEntries; | 2043 return kFeatureEntries; |
2039 } | 2044 } |
2040 | 2045 |
2041 } // namespace testing | 2046 } // namespace testing |
2042 | 2047 |
2043 } // namespace about_flags | 2048 } // namespace about_flags |
OLD | NEW |