| 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 25 matching lines...) Expand all Loading... |
| 36 #include "components/autofill/core/common/autofill_switches.h" | 36 #include "components/autofill/core/common/autofill_switches.h" |
| 37 #include "components/browser_sync/common/browser_sync_switches.h" | 37 #include "components/browser_sync/common/browser_sync_switches.h" |
| 38 #include "components/cloud_devices/common/cloud_devices_switches.h" | 38 #include "components/cloud_devices/common/cloud_devices_switches.h" |
| 39 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_switc
hes.h" | 39 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_switc
hes.h" |
| 40 #include "components/dom_distiller/core/dom_distiller_switches.h" | 40 #include "components/dom_distiller/core/dom_distiller_switches.h" |
| 41 #include "components/error_page/common/error_page_switches.h" | 41 #include "components/error_page/common/error_page_switches.h" |
| 42 #include "components/flags_ui/feature_entry_macros.h" | 42 #include "components/flags_ui/feature_entry_macros.h" |
| 43 #include "components/flags_ui/flags_storage.h" | 43 #include "components/flags_ui/flags_storage.h" |
| 44 #include "components/flags_ui/flags_ui_switches.h" | 44 #include "components/flags_ui/flags_ui_switches.h" |
| 45 #include "components/nacl/common/nacl_switches.h" | 45 #include "components/nacl/common/nacl_switches.h" |
| 46 #include "components/offline_pages/offline_page_feature.h" |
| 46 #include "components/offline_pages/offline_page_switches.h" | 47 #include "components/offline_pages/offline_page_switches.h" |
| 47 #include "components/omnibox/browser/omnibox_switches.h" | 48 #include "components/omnibox/browser/omnibox_switches.h" |
| 48 #include "components/password_manager/core/common/password_manager_features.h" | 49 #include "components/password_manager/core/common/password_manager_features.h" |
| 49 #include "components/password_manager/core/common/password_manager_switches.h" | 50 #include "components/password_manager/core/common/password_manager_switches.h" |
| 50 #include "components/proximity_auth/switches.h" | 51 #include "components/proximity_auth/switches.h" |
| 51 #include "components/search/search_switches.h" | 52 #include "components/search/search_switches.h" |
| 52 #include "components/security_state/switches.h" | 53 #include "components/security_state/switches.h" |
| 53 #include "components/signin/core/common/signin_switches.h" | 54 #include "components/signin/core/common/signin_switches.h" |
| 54 #include "components/sync_driver/sync_driver_switches.h" | 55 #include "components/sync_driver/sync_driver_switches.h" |
| 55 #include "components/tracing/tracing_switches.h" | 56 #include "components/tracing/tracing_switches.h" |
| (...skipping 1749 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1805 #if defined(OS_ANDROID) | 1806 #if defined(OS_ANDROID) |
| 1806 {"ime-thread", IDS_FLAGS_IME_THREAD_NAME, | 1807 {"ime-thread", IDS_FLAGS_IME_THREAD_NAME, |
| 1807 IDS_FLAGS_IME_THREAD_DESCRIPTION, kOsAndroid, | 1808 IDS_FLAGS_IME_THREAD_DESCRIPTION, kOsAndroid, |
| 1808 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableImeThread, | 1809 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableImeThread, |
| 1809 switches::kDisableImeThread)}, | 1810 switches::kDisableImeThread)}, |
| 1810 #endif // defined(OS_ANDROID) | 1811 #endif // defined(OS_ANDROID) |
| 1811 #if defined(OS_ANDROID) | 1812 #if defined(OS_ANDROID) |
| 1812 {"offline-pages-ntp", IDS_FLAGS_NTP_OFFLINE_PAGES_NAME, | 1813 {"offline-pages-ntp", IDS_FLAGS_NTP_OFFLINE_PAGES_NAME, |
| 1813 IDS_FLAGS_NTP_OFFLINE_PAGES_DESCRIPTION, kOsAndroid, | 1814 IDS_FLAGS_NTP_OFFLINE_PAGES_DESCRIPTION, kOsAndroid, |
| 1814 FEATURE_VALUE_TYPE(chrome::android::kNTPOfflinePagesFeature)}, | 1815 FEATURE_VALUE_TYPE(chrome::android::kNTPOfflinePagesFeature)}, |
| 1816 {"offlining-recent-pages", IDS_FLAGS_OFFLINING_RECENT_PAGES_NAME, |
| 1817 IDS_FLAGS_OFFLINING_RECENT_PAGES_DESCRIPTION, kOsAndroid, |
| 1818 FEATURE_VALUE_TYPE(offline_pages::kOffliningRecentPagesFeature)}, |
| 1815 #endif // defined(OS_ANDROID) | 1819 #endif // defined(OS_ANDROID) |
| 1816 // NOTE: Adding new command-line switches requires adding corresponding | 1820 // NOTE: Adding new command-line switches requires adding corresponding |
| 1817 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 1821 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
| 1818 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 1822 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
| 1819 }; | 1823 }; |
| 1820 | 1824 |
| 1821 class FlagsStateSingleton { | 1825 class FlagsStateSingleton { |
| 1822 public: | 1826 public: |
| 1823 FlagsStateSingleton() | 1827 FlagsStateSingleton() |
| 1824 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} | 1828 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2015 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2019 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
| 2016 | 2020 |
| 2017 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2021 const FeatureEntry* GetFeatureEntries(size_t* count) { |
| 2018 *count = arraysize(kFeatureEntries); | 2022 *count = arraysize(kFeatureEntries); |
| 2019 return kFeatureEntries; | 2023 return kFeatureEntries; |
| 2020 } | 2024 } |
| 2021 | 2025 |
| 2022 } // namespace testing | 2026 } // namespace testing |
| 2023 | 2027 |
| 2024 } // namespace about_flags | 2028 } // namespace about_flags |
| OLD | NEW |