| 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 18 matching lines...) Expand all Loading... |
| 29 #include "components/cloud_devices/common/cloud_devices_switches.h" | 29 #include "components/cloud_devices/common/cloud_devices_switches.h" |
| 30 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_switc
hes.h" | 30 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_switc
hes.h" |
| 31 #include "components/dom_distiller/core/dom_distiller_switches.h" | 31 #include "components/dom_distiller/core/dom_distiller_switches.h" |
| 32 #include "components/enhanced_bookmarks/enhanced_bookmark_switches.h" | 32 #include "components/enhanced_bookmarks/enhanced_bookmark_switches.h" |
| 33 #include "components/flags_ui/flags_storage.h" | 33 #include "components/flags_ui/flags_storage.h" |
| 34 #include "components/metrics/metrics_hashes.h" | 34 #include "components/metrics/metrics_hashes.h" |
| 35 #include "components/nacl/common/nacl_switches.h" | 35 #include "components/nacl/common/nacl_switches.h" |
| 36 #include "components/offline_pages/offline_page_switches.h" | 36 #include "components/offline_pages/offline_page_switches.h" |
| 37 #include "components/omnibox/browser/omnibox_switches.h" | 37 #include "components/omnibox/browser/omnibox_switches.h" |
| 38 #include "components/password_manager/core/common/password_manager_switches.h" | 38 #include "components/password_manager/core/common/password_manager_switches.h" |
| 39 #include "components/plugins/common/plugins_switches.h" | |
| 40 #include "components/proximity_auth/switches.h" | 39 #include "components/proximity_auth/switches.h" |
| 41 #include "components/search/search_switches.h" | 40 #include "components/search/search_switches.h" |
| 42 #include "components/signin/core/common/signin_switches.h" | 41 #include "components/signin/core/common/signin_switches.h" |
| 43 #include "components/sync_driver/sync_driver_switches.h" | 42 #include "components/sync_driver/sync_driver_switches.h" |
| 44 #include "components/tracing/tracing_switches.h" | 43 #include "components/tracing/tracing_switches.h" |
| 45 #include "components/version_info/version_info.h" | 44 #include "components/version_info/version_info.h" |
| 46 #include "content/public/browser/user_metrics.h" | 45 #include "content/public/browser/user_metrics.h" |
| 47 #include "content/public/common/content_switches.h" | 46 #include "content/public/common/content_switches.h" |
| 48 #include "media/base/media_switches.h" | 47 #include "media/base/media_switches.h" |
| 49 #include "media/midi/midi_switches.h" | 48 #include "media/midi/midi_switches.h" |
| (...skipping 1668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1718 {"enable-credential-manager-api", | 1717 {"enable-credential-manager-api", |
| 1719 IDS_FLAGS_CREDENTIAL_MANAGER_API_NAME, | 1718 IDS_FLAGS_CREDENTIAL_MANAGER_API_NAME, |
| 1720 IDS_FLAGS_CREDENTIAL_MANAGER_API_DESCRIPTION, | 1719 IDS_FLAGS_CREDENTIAL_MANAGER_API_DESCRIPTION, |
| 1721 kOsAll, | 1720 kOsAll, |
| 1722 SINGLE_VALUE_TYPE(switches::kEnableCredentialManagerAPI)}, | 1721 SINGLE_VALUE_TYPE(switches::kEnableCredentialManagerAPI)}, |
| 1723 {"reduced-referrer-granularity", | 1722 {"reduced-referrer-granularity", |
| 1724 IDS_FLAGS_REDUCED_REFERRER_GRANULARITY_NAME, | 1723 IDS_FLAGS_REDUCED_REFERRER_GRANULARITY_NAME, |
| 1725 IDS_FLAGS_REDUCED_REFERRER_GRANULARITY_DESCRIPTION, | 1724 IDS_FLAGS_REDUCED_REFERRER_GRANULARITY_DESCRIPTION, |
| 1726 kOsAll, | 1725 kOsAll, |
| 1727 SINGLE_VALUE_TYPE(switches::kReducedReferrerGranularity)}, | 1726 SINGLE_VALUE_TYPE(switches::kReducedReferrerGranularity)}, |
| 1728 #if defined(ENABLE_PLUGINS) | |
| 1729 {"enable-plugin-power-saver", | |
| 1730 IDS_FLAGS_ENABLE_PLUGIN_POWER_SAVER_NAME, | |
| 1731 IDS_FLAGS_ENABLE_PLUGIN_POWER_SAVER_DESCRIPTION, | |
| 1732 kOsDesktop, | |
| 1733 ENABLE_DISABLE_VALUE_TYPE(plugins::switches::kEnablePluginPowerSaver, | |
| 1734 plugins::switches::kDisablePluginPowerSaver)}, | |
| 1735 #endif | |
| 1736 #if defined(OS_CHROMEOS) | 1727 #if defined(OS_CHROMEOS) |
| 1737 {"disable-new-zip-unpacker", | 1728 {"disable-new-zip-unpacker", |
| 1738 IDS_FLAGS_DISABLE_NEW_ZIP_UNPACKER_NAME, | 1729 IDS_FLAGS_DISABLE_NEW_ZIP_UNPACKER_NAME, |
| 1739 IDS_FLAGS_DISABLE_NEW_ZIP_UNPACKER_DESCRIPTION, | 1730 IDS_FLAGS_DISABLE_NEW_ZIP_UNPACKER_DESCRIPTION, |
| 1740 kOsCrOS, | 1731 kOsCrOS, |
| 1741 SINGLE_VALUE_TYPE(chromeos::switches::kDisableNewZIPUnpacker)}, | 1732 SINGLE_VALUE_TYPE(chromeos::switches::kDisableNewZIPUnpacker)}, |
| 1742 #endif // defined(OS_CHROMEOS) | 1733 #endif // defined(OS_CHROMEOS) |
| 1743 {"enable-credit-card-scan", | 1734 {"enable-credit-card-scan", |
| 1744 IDS_FLAGS_ENABLE_CREDIT_CARD_SCAN_NAME, | 1735 IDS_FLAGS_ENABLE_CREDIT_CARD_SCAN_NAME, |
| 1745 IDS_FLAGS_ENABLE_CREDIT_CARD_SCAN_DESCRIPTION, | 1736 IDS_FLAGS_ENABLE_CREDIT_CARD_SCAN_DESCRIPTION, |
| (...skipping 1231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2977 FlagsState::GetInstance()->SetFeatureEntries(entries, count); | 2968 FlagsState::GetInstance()->SetFeatureEntries(entries, count); |
| 2978 } | 2969 } |
| 2979 | 2970 |
| 2980 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2971 const FeatureEntry* GetFeatureEntries(size_t* count) { |
| 2981 return FlagsState::GetInstance()->GetFeatureEntries(count); | 2972 return FlagsState::GetInstance()->GetFeatureEntries(count); |
| 2982 } | 2973 } |
| 2983 | 2974 |
| 2984 } // namespace testing | 2975 } // namespace testing |
| 2985 | 2976 |
| 2986 } // namespace about_flags | 2977 } // namespace about_flags |
| OLD | NEW |