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