| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 #include "components/flags_ui/flags_storage.h" | 50 #include "components/flags_ui/flags_storage.h" |
| 51 #include "components/flags_ui/flags_ui_switches.h" | 51 #include "components/flags_ui/flags_ui_switches.h" |
| 52 #include "components/nacl/common/nacl_switches.h" | 52 #include "components/nacl/common/nacl_switches.h" |
| 53 #include "components/ntp_snippets/features.h" | 53 #include "components/ntp_snippets/features.h" |
| 54 #include "components/ntp_snippets/ntp_snippets_constants.h" | 54 #include "components/ntp_snippets/ntp_snippets_constants.h" |
| 55 #include "components/ntp_tiles/switches.h" | 55 #include "components/ntp_tiles/switches.h" |
| 56 #include "components/offline_pages/core/offline_page_feature.h" | 56 #include "components/offline_pages/core/offline_page_feature.h" |
| 57 #include "components/omnibox/browser/omnibox_field_trial.h" | 57 #include "components/omnibox/browser/omnibox_field_trial.h" |
| 58 #include "components/omnibox/browser/omnibox_switches.h" | 58 #include "components/omnibox/browser/omnibox_switches.h" |
| 59 #include "components/password_manager/core/common/password_manager_features.h" | 59 #include "components/password_manager/core/common/password_manager_features.h" |
| 60 #include "components/previews/core/previews_features.h" |
| 60 #include "components/proximity_auth/switches.h" | 61 #include "components/proximity_auth/switches.h" |
| 61 #include "components/security_state/core/security_state.h" | 62 #include "components/security_state/core/security_state.h" |
| 62 #include "components/security_state/core/switches.h" | 63 #include "components/security_state/core/switches.h" |
| 63 #include "components/signin/core/common/signin_switches.h" | 64 #include "components/signin/core/common/signin_switches.h" |
| 64 #include "components/spellcheck/common/spellcheck_features.h" | 65 #include "components/spellcheck/common/spellcheck_features.h" |
| 65 #include "components/spellcheck/common/spellcheck_switches.h" | 66 #include "components/spellcheck/common/spellcheck_switches.h" |
| 66 #include "components/spellcheck/spellcheck_build_features.h" | 67 #include "components/spellcheck/spellcheck_build_features.h" |
| 67 #include "components/ssl_config/ssl_config_switches.h" | 68 #include "components/ssl_config/ssl_config_switches.h" |
| 68 #include "components/strings/grit/components_strings.h" | 69 #include "components/strings/grit/components_strings.h" |
| 69 #include "components/sync/driver/sync_driver_switches.h" | 70 #include "components/sync/driver/sync_driver_switches.h" |
| (...skipping 1750 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1820 FEATURE_WITH_PARAMS_VALUE_TYPE( | 1821 FEATURE_WITH_PARAMS_VALUE_TYPE( |
| 1821 data_reduction_proxy::features::kDataReductionMainMenu, | 1822 data_reduction_proxy::features::kDataReductionMainMenu, |
| 1822 kDataReductionMainMenuFeatureVariations, | 1823 kDataReductionMainMenuFeatureVariations, |
| 1823 "DataReductionProxyMainMenu")}, | 1824 "DataReductionProxyMainMenu")}, |
| 1824 {"enable-data-reduction-proxy-site-breakdown", | 1825 {"enable-data-reduction-proxy-site-breakdown", |
| 1825 flag_descriptions::kEnableDataReductionProxySiteBreakdownName, | 1826 flag_descriptions::kEnableDataReductionProxySiteBreakdownName, |
| 1826 flag_descriptions::kEnableDataReductionProxySiteBreakdownDescription, | 1827 flag_descriptions::kEnableDataReductionProxySiteBreakdownDescription, |
| 1827 kOsAndroid, | 1828 kOsAndroid, |
| 1828 FEATURE_VALUE_TYPE( | 1829 FEATURE_VALUE_TYPE( |
| 1829 data_reduction_proxy::features::kDataReductionSiteBreakdown)}, | 1830 data_reduction_proxy::features::kDataReductionSiteBreakdown)}, |
| 1831 {"enable-offline-previews", flag_descriptions::kEnableOfflinePreviewsName, |
| 1832 flag_descriptions::kEnableOfflinePreviewsDescription, kOsAndroid, |
| 1833 FEATURE_VALUE_TYPE(previews::features::kOfflinePreviews)}, |
| 1830 #endif // OS_ANDROID | 1834 #endif // OS_ANDROID |
| 1831 {"allow-insecure-localhost", flag_descriptions::kAllowInsecureLocalhost, | 1835 {"allow-insecure-localhost", flag_descriptions::kAllowInsecureLocalhost, |
| 1832 flag_descriptions::kAllowInsecureLocalhostDescription, kOsAll, | 1836 flag_descriptions::kAllowInsecureLocalhostDescription, kOsAll, |
| 1833 SINGLE_VALUE_TYPE(switches::kAllowInsecureLocalhost)}, | 1837 SINGLE_VALUE_TYPE(switches::kAllowInsecureLocalhost)}, |
| 1834 {"enable-add-to-shelf", flag_descriptions::kAddToShelfName, | 1838 {"enable-add-to-shelf", flag_descriptions::kAddToShelfName, |
| 1835 flag_descriptions::kAddToShelfDescription, kOsDesktop, | 1839 flag_descriptions::kAddToShelfDescription, kOsDesktop, |
| 1836 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableAddToShelf, | 1840 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableAddToShelf, |
| 1837 switches::kDisableAddToShelf)}, | 1841 switches::kDisableAddToShelf)}, |
| 1838 {"bypass-app-banner-engagement-checks", | 1842 {"bypass-app-banner-engagement-checks", |
| 1839 flag_descriptions::kBypassAppBannerEngagementChecksName, | 1843 flag_descriptions::kBypassAppBannerEngagementChecksName, |
| (...skipping 1164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3004 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 3008 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
| 3005 | 3009 |
| 3006 const FeatureEntry* GetFeatureEntries(size_t* count) { | 3010 const FeatureEntry* GetFeatureEntries(size_t* count) { |
| 3007 *count = arraysize(kFeatureEntries); | 3011 *count = arraysize(kFeatureEntries); |
| 3008 return kFeatureEntries; | 3012 return kFeatureEntries; |
| 3009 } | 3013 } |
| 3010 | 3014 |
| 3011 } // namespace testing | 3015 } // namespace testing |
| 3012 | 3016 |
| 3013 } // namespace about_flags | 3017 } // namespace about_flags |
| OLD | NEW |