| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 #include "components/flags_ui/flags_storage.h" | 45 #include "components/flags_ui/flags_storage.h" |
| 46 #include "components/flags_ui/flags_ui_switches.h" | 46 #include "components/flags_ui/flags_ui_switches.h" |
| 47 #include "components/nacl/common/nacl_switches.h" | 47 #include "components/nacl/common/nacl_switches.h" |
| 48 #include "components/ntp_snippets/features.h" | 48 #include "components/ntp_snippets/features.h" |
| 49 #include "components/ntp_snippets/ntp_snippets_constants.h" | 49 #include "components/ntp_snippets/ntp_snippets_constants.h" |
| 50 #include "components/ntp_tiles/switches.h" | 50 #include "components/ntp_tiles/switches.h" |
| 51 #include "components/offline_pages/core/offline_page_feature.h" | 51 #include "components/offline_pages/core/offline_page_feature.h" |
| 52 #include "components/omnibox/browser/omnibox_switches.h" | 52 #include "components/omnibox/browser/omnibox_switches.h" |
| 53 #include "components/password_manager/core/common/password_manager_features.h" | 53 #include "components/password_manager/core/common/password_manager_features.h" |
| 54 #include "components/proximity_auth/switches.h" | 54 #include "components/proximity_auth/switches.h" |
| 55 #include "components/security_state/core/security_state.h" |
| 55 #include "components/security_state/core/switches.h" | 56 #include "components/security_state/core/switches.h" |
| 56 #include "components/signin/core/common/signin_switches.h" | 57 #include "components/signin/core/common/signin_switches.h" |
| 57 #include "components/spellcheck/common/spellcheck_features.h" | 58 #include "components/spellcheck/common/spellcheck_features.h" |
| 58 #include "components/spellcheck/common/spellcheck_switches.h" | 59 #include "components/spellcheck/common/spellcheck_switches.h" |
| 59 #include "components/spellcheck/spellcheck_build_features.h" | 60 #include "components/spellcheck/spellcheck_build_features.h" |
| 60 #include "components/ssl_config/ssl_config_switches.h" | 61 #include "components/ssl_config/ssl_config_switches.h" |
| 61 #include "components/strings/grit/components_strings.h" | 62 #include "components/strings/grit/components_strings.h" |
| 62 #include "components/sync/driver/sync_driver_switches.h" | 63 #include "components/sync/driver/sync_driver_switches.h" |
| 63 #include "components/tracing/common/tracing_switches.h" | 64 #include "components/tracing/common/tracing_switches.h" |
| 64 #include "components/translate/core/browser/translate_manager.h" | 65 #include "components/translate/core/browser/translate_manager.h" |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 }; | 204 }; |
| 204 | 205 |
| 205 const FeatureEntry::Choice kMarkHttpAsChoices[] = { | 206 const FeatureEntry::Choice kMarkHttpAsChoices[] = { |
| 206 {IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", ""}, | 207 {IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", ""}, |
| 207 {IDS_MARK_HTTP_AS_NEUTRAL, security_state::switches::kMarkHttpAs, | 208 {IDS_MARK_HTTP_AS_NEUTRAL, security_state::switches::kMarkHttpAs, |
| 208 security_state::switches::kMarkHttpAsNeutral}, | 209 security_state::switches::kMarkHttpAsNeutral}, |
| 209 {IDS_MARK_HTTP_AS_DANGEROUS, security_state::switches::kMarkHttpAs, | 210 {IDS_MARK_HTTP_AS_DANGEROUS, security_state::switches::kMarkHttpAs, |
| 210 security_state::switches::kMarkHttpAsDangerous}, | 211 security_state::switches::kMarkHttpAsDangerous}, |
| 211 {IDS_MARK_HTTP_WITH_PASSWORDS_OR_CC_WITH_CHIP, | 212 {IDS_MARK_HTTP_WITH_PASSWORDS_OR_CC_WITH_CHIP, |
| 212 security_state::switches::kMarkHttpAs, | 213 security_state::switches::kMarkHttpAs, |
| 213 security_state::switches::kMarkHttpWithPasswordsOrCcWithChip}, | 214 security_state::switches::kMarkHttpWithPasswordsOrCcWithChip}}; |
| 214 {IDS_MARK_HTTP_WITH_PASSWORDS_OR_CC_WITH_CHIP_AND_FORM_WARNING, | |
| 215 security_state::switches::kMarkHttpAs, | |
| 216 security_state::switches:: | |
| 217 kMarkHttpWithPasswordsOrCcWithChipAndFormWarning}}; | |
| 218 | 215 |
| 219 const FeatureEntry::Choice kDataReductionProxyLoFiChoices[] = { | 216 const FeatureEntry::Choice kDataReductionProxyLoFiChoices[] = { |
| 220 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, | 217 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, |
| 221 { IDS_FLAGS_DATA_REDUCTION_PROXY_LO_FI_ALWAYS_ON, | 218 { IDS_FLAGS_DATA_REDUCTION_PROXY_LO_FI_ALWAYS_ON, |
| 222 data_reduction_proxy::switches::kDataReductionProxyLoFi, | 219 data_reduction_proxy::switches::kDataReductionProxyLoFi, |
| 223 data_reduction_proxy::switches::kDataReductionProxyLoFiValueAlwaysOn}, | 220 data_reduction_proxy::switches::kDataReductionProxyLoFiValueAlwaysOn}, |
| 224 { IDS_FLAGS_DATA_REDUCTION_PROXY_LO_FI_CELLULAR_ONLY, | 221 { IDS_FLAGS_DATA_REDUCTION_PROXY_LO_FI_CELLULAR_ONLY, |
| 225 data_reduction_proxy::switches::kDataReductionProxyLoFi, | 222 data_reduction_proxy::switches::kDataReductionProxyLoFi, |
| 226 data_reduction_proxy::switches:: | 223 data_reduction_proxy::switches:: |
| 227 kDataReductionProxyLoFiValueCellularOnly}, | 224 kDataReductionProxyLoFiValueCellularOnly}, |
| (...skipping 1232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1460 {"enable-wifi-credential-sync", IDS_FLAGS_WIFI_CREDENTIAL_SYNC_NAME, | 1457 {"enable-wifi-credential-sync", IDS_FLAGS_WIFI_CREDENTIAL_SYNC_NAME, |
| 1461 IDS_FLAGS_WIFI_CREDENTIAL_SYNC_DESCRIPTION, kOsCrOS, | 1458 IDS_FLAGS_WIFI_CREDENTIAL_SYNC_DESCRIPTION, kOsCrOS, |
| 1462 SINGLE_VALUE_TYPE(switches::kEnableWifiCredentialSync)}, | 1459 SINGLE_VALUE_TYPE(switches::kEnableWifiCredentialSync)}, |
| 1463 {"enable-potentially-annoying-security-features", | 1460 {"enable-potentially-annoying-security-features", |
| 1464 IDS_FLAGS_EXPERIMENTAL_SECURITY_FEATURES_NAME, | 1461 IDS_FLAGS_EXPERIMENTAL_SECURITY_FEATURES_NAME, |
| 1465 IDS_FLAGS_EXPERIMENTAL_SECURITY_FEATURES_DESCRIPTION, kOsAll, | 1462 IDS_FLAGS_EXPERIMENTAL_SECURITY_FEATURES_DESCRIPTION, kOsAll, |
| 1466 SINGLE_VALUE_TYPE(switches::kEnablePotentiallyAnnoyingSecurityFeatures)}, | 1463 SINGLE_VALUE_TYPE(switches::kEnablePotentiallyAnnoyingSecurityFeatures)}, |
| 1467 #endif // OS_CHROMEOS | 1464 #endif // OS_CHROMEOS |
| 1468 {"mark-non-secure-as", IDS_MARK_HTTP_AS_NAME, IDS_MARK_HTTP_AS_DESCRIPTION, | 1465 {"mark-non-secure-as", IDS_MARK_HTTP_AS_NAME, IDS_MARK_HTTP_AS_DESCRIPTION, |
| 1469 kOsAll, MULTI_VALUE_TYPE(kMarkHttpAsChoices)}, | 1466 kOsAll, MULTI_VALUE_TYPE(kMarkHttpAsChoices)}, |
| 1467 {"enable-http-form-warning", IDS_ENABLE_HTTP_FORM_WARNING_NAME, |
| 1468 IDS_ENABLE_HTTP_FORM_WARNING_DESCRIPTION, kOsAll, |
| 1469 FEATURE_VALUE_TYPE(security_state::kHttpFormWarningFeature)}, |
| 1470 {"enable-site-per-process", IDS_FLAGS_SITE_PER_PROCESS_NAME, | 1470 {"enable-site-per-process", IDS_FLAGS_SITE_PER_PROCESS_NAME, |
| 1471 IDS_FLAGS_SITE_PER_PROCESS_DESCRIPTION, kOsAll, | 1471 IDS_FLAGS_SITE_PER_PROCESS_DESCRIPTION, kOsAll, |
| 1472 SINGLE_VALUE_TYPE(switches::kSitePerProcess)}, | 1472 SINGLE_VALUE_TYPE(switches::kSitePerProcess)}, |
| 1473 {"enable-top-document-isolation", IDS_FLAGS_TOP_DOCUMENT_ISOLATION_NAME, | 1473 {"enable-top-document-isolation", IDS_FLAGS_TOP_DOCUMENT_ISOLATION_NAME, |
| 1474 IDS_FLAGS_TOP_DOCUMENT_ISOLATION_DESCRIPTION, kOsAll, | 1474 IDS_FLAGS_TOP_DOCUMENT_ISOLATION_DESCRIPTION, kOsAll, |
| 1475 SINGLE_VALUE_TYPE(switches::kTopDocumentIsolation)}, | 1475 SINGLE_VALUE_TYPE(switches::kTopDocumentIsolation)}, |
| 1476 {"enable-use-zoom-for-dsf", IDS_FLAGS_ENABLE_USE_ZOOM_FOR_DSF_NAME, | 1476 {"enable-use-zoom-for-dsf", IDS_FLAGS_ENABLE_USE_ZOOM_FOR_DSF_NAME, |
| 1477 IDS_FLAGS_ENABLE_USE_ZOOM_FOR_DSF_DESCRIPTION, kOsAll, | 1477 IDS_FLAGS_ENABLE_USE_ZOOM_FOR_DSF_DESCRIPTION, kOsAll, |
| 1478 MULTI_VALUE_TYPE(kEnableUseZoomForDSFChoices)}, | 1478 MULTI_VALUE_TYPE(kEnableUseZoomForDSFChoices)}, |
| 1479 #if defined(OS_MACOSX) | 1479 #if defined(OS_MACOSX) |
| (...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2300 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2300 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
| 2301 | 2301 |
| 2302 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2302 const FeatureEntry* GetFeatureEntries(size_t* count) { |
| 2303 *count = arraysize(kFeatureEntries); | 2303 *count = arraysize(kFeatureEntries); |
| 2304 return kFeatureEntries; | 2304 return kFeatureEntries; |
| 2305 } | 2305 } |
| 2306 | 2306 |
| 2307 } // namespace testing | 2307 } // namespace testing |
| 2308 | 2308 |
| 2309 } // namespace about_flags | 2309 } // namespace about_flags |
| OLD | NEW |