| 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 1801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1812 {"important-sites-in-cbd", | 1812 {"important-sites-in-cbd", |
| 1813 IDS_FLAGS_IMPORTANT_SITES_IN_CBD_NAME, | 1813 IDS_FLAGS_IMPORTANT_SITES_IN_CBD_NAME, |
| 1814 IDS_FLAGS_IMPORTANT_SITES_IN_CBD_DESCRIPTION, kOsAndroid, | 1814 IDS_FLAGS_IMPORTANT_SITES_IN_CBD_DESCRIPTION, kOsAndroid, |
| 1815 FEATURE_VALUE_TYPE(chrome::android::kImportantSitesInCBD)}, | 1815 FEATURE_VALUE_TYPE(chrome::android::kImportantSitesInCBD)}, |
| 1816 #endif | 1816 #endif |
| 1817 {"enable-pointer-events", // FLAGS:RECORD_UMA | 1817 {"enable-pointer-events", // FLAGS:RECORD_UMA |
| 1818 IDS_FLAGS_EXPERIMENTAL_POINTER_EVENT_NAME, | 1818 IDS_FLAGS_EXPERIMENTAL_POINTER_EVENT_NAME, |
| 1819 IDS_FLAGS_EXPERIMENTAL_POINTER_EVENT_DESCRIPTION, | 1819 IDS_FLAGS_EXPERIMENTAL_POINTER_EVENT_DESCRIPTION, |
| 1820 kOsAll, | 1820 kOsAll, |
| 1821 FEATURE_VALUE_TYPE(features::kPointerEvents)}, | 1821 FEATURE_VALUE_TYPE(features::kPointerEvents)}, |
| 1822 #if defined(OS_ANDROID) |
| 1823 {"enable-unified-permission-manager", |
| 1824 IDS_FLAGS_UNIFIED_PERMISSION_MANAGER_NAME, |
| 1825 IDS_FLAGS_UNIFIED_PERMISSION_MANAGER_DESCRIPTION, kOsAndroid, |
| 1826 SINGLE_VALUE_TYPE(switches::kEnableUnifiedPermissionManager)}, |
| 1827 #endif // defined(OS_ANDROID) |
| 1828 |
| 1822 // NOTE: Adding new command-line switches requires adding corresponding | 1829 // NOTE: Adding new command-line switches requires adding corresponding |
| 1823 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 1830 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
| 1824 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 1831 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
| 1825 }; | 1832 }; |
| 1826 | 1833 |
| 1827 class FlagsStateSingleton { | 1834 class FlagsStateSingleton { |
| 1828 public: | 1835 public: |
| 1829 FlagsStateSingleton() | 1836 FlagsStateSingleton() |
| 1830 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} | 1837 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} |
| 1831 ~FlagsStateSingleton() {} | 1838 ~FlagsStateSingleton() {} |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2011 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2018 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
| 2012 | 2019 |
| 2013 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2020 const FeatureEntry* GetFeatureEntries(size_t* count) { |
| 2014 *count = arraysize(kFeatureEntries); | 2021 *count = arraysize(kFeatureEntries); |
| 2015 return kFeatureEntries; | 2022 return kFeatureEntries; |
| 2016 } | 2023 } |
| 2017 | 2024 |
| 2018 } // namespace testing | 2025 } // namespace testing |
| 2019 | 2026 |
| 2020 } // namespace about_flags | 2027 } // namespace about_flags |
| OLD | NEW |