| 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 30 matching lines...) Expand all Loading... |
| 41 #include "components/flags_ui/feature_entry_macros.h" | 41 #include "components/flags_ui/feature_entry_macros.h" |
| 42 #include "components/flags_ui/flags_storage.h" | 42 #include "components/flags_ui/flags_storage.h" |
| 43 #include "components/flags_ui/flags_ui_switches.h" | 43 #include "components/flags_ui/flags_ui_switches.h" |
| 44 #include "components/nacl/common/nacl_switches.h" | 44 #include "components/nacl/common/nacl_switches.h" |
| 45 #include "components/offline_pages/offline_page_switches.h" | 45 #include "components/offline_pages/offline_page_switches.h" |
| 46 #include "components/omnibox/browser/omnibox_switches.h" | 46 #include "components/omnibox/browser/omnibox_switches.h" |
| 47 #include "components/password_manager/core/common/password_manager_features.h" | 47 #include "components/password_manager/core/common/password_manager_features.h" |
| 48 #include "components/password_manager/core/common/password_manager_switches.h" | 48 #include "components/password_manager/core/common/password_manager_switches.h" |
| 49 #include "components/proximity_auth/switches.h" | 49 #include "components/proximity_auth/switches.h" |
| 50 #include "components/search/search_switches.h" | 50 #include "components/search/search_switches.h" |
| 51 #include "components/security_state/switches.h" |
| 51 #include "components/signin/core/common/signin_switches.h" | 52 #include "components/signin/core/common/signin_switches.h" |
| 52 #include "components/sync_driver/sync_driver_switches.h" | 53 #include "components/sync_driver/sync_driver_switches.h" |
| 53 #include "components/tracing/tracing_switches.h" | 54 #include "components/tracing/tracing_switches.h" |
| 54 #include "components/version_info/version_info.h" | 55 #include "components/version_info/version_info.h" |
| 55 #include "content/public/browser/user_metrics.h" | 56 #include "content/public/browser/user_metrics.h" |
| 56 #include "content/public/common/content_features.h" | 57 #include "content/public/common/content_features.h" |
| 57 #include "content/public/common/content_switches.h" | 58 #include "content/public/common/content_switches.h" |
| 58 #include "grit/components_strings.h" | 59 #include "grit/components_strings.h" |
| 59 #include "media/base/media_switches.h" | 60 #include "media/base/media_switches.h" |
| 60 #include "media/midi/midi_switches.h" | 61 #include "media/midi/midi_switches.h" |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 // NOTE: As the default value must be the empty string, the mask excluding | 172 // NOTE: As the default value must be the empty string, the mask excluding |
| 172 // the PNaCl translator and secure shell is substituted elsewhere. | 173 // the PNaCl translator and secure shell is substituted elsewhere. |
| 173 { IDS_NACL_DEBUG_MASK_CHOICE_EXCLUDE_UTILS_PNACL, "", "" }, | 174 { IDS_NACL_DEBUG_MASK_CHOICE_EXCLUDE_UTILS_PNACL, "", "" }, |
| 174 { IDS_NACL_DEBUG_MASK_CHOICE_DEBUG_ALL, switches::kNaClDebugMask, "*://*" }, | 175 { IDS_NACL_DEBUG_MASK_CHOICE_DEBUG_ALL, switches::kNaClDebugMask, "*://*" }, |
| 175 { IDS_NACL_DEBUG_MASK_CHOICE_INCLUDE_DEBUG, | 176 { IDS_NACL_DEBUG_MASK_CHOICE_INCLUDE_DEBUG, |
| 176 switches::kNaClDebugMask, "*://*/*debug.nmf" } | 177 switches::kNaClDebugMask, "*://*/*debug.nmf" } |
| 177 }; | 178 }; |
| 178 #endif | 179 #endif |
| 179 | 180 |
| 180 const FeatureEntry::Choice kMarkNonSecureAsChoices[] = { | 181 const FeatureEntry::Choice kMarkNonSecureAsChoices[] = { |
| 181 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, | 182 {IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", ""}, |
| 182 { IDS_MARK_NON_SECURE_AS_NEUTRAL, | 183 {IDS_MARK_NON_SECURE_AS_NEUTRAL, security_state::switches::kMarkNonSecureAs, |
| 183 switches::kMarkNonSecureAs, switches::kMarkNonSecureAsNeutral}, | 184 security_state::switches::kMarkNonSecureAsNeutral}, |
| 184 { IDS_MARK_NON_SECURE_AS_NON_SECURE, | 185 {IDS_MARK_NON_SECURE_AS_NON_SECURE, |
| 185 switches::kMarkNonSecureAs, switches::kMarkNonSecureAsNonSecure} | 186 security_state::switches::kMarkNonSecureAs, |
| 186 }; | 187 security_state::switches::kMarkNonSecureAsNonSecure}}; |
| 187 | 188 |
| 188 const FeatureEntry::Choice kDataReductionProxyLoFiChoices[] = { | 189 const FeatureEntry::Choice kDataReductionProxyLoFiChoices[] = { |
| 189 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, | 190 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, |
| 190 { IDS_FLAGS_DATA_REDUCTION_PROXY_LO_FI_ALWAYS_ON, | 191 { IDS_FLAGS_DATA_REDUCTION_PROXY_LO_FI_ALWAYS_ON, |
| 191 data_reduction_proxy::switches::kDataReductionProxyLoFi, | 192 data_reduction_proxy::switches::kDataReductionProxyLoFi, |
| 192 data_reduction_proxy::switches::kDataReductionProxyLoFiValueAlwaysOn}, | 193 data_reduction_proxy::switches::kDataReductionProxyLoFiValueAlwaysOn}, |
| 193 { IDS_FLAGS_DATA_REDUCTION_PROXY_LO_FI_CELLULAR_ONLY, | 194 { IDS_FLAGS_DATA_REDUCTION_PROXY_LO_FI_CELLULAR_ONLY, |
| 194 data_reduction_proxy::switches::kDataReductionProxyLoFi, | 195 data_reduction_proxy::switches::kDataReductionProxyLoFi, |
| 195 data_reduction_proxy::switches:: | 196 data_reduction_proxy::switches:: |
| 196 kDataReductionProxyLoFiValueCellularOnly}, | 197 kDataReductionProxyLoFiValueCellularOnly}, |
| (...skipping 2129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2326 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2327 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
| 2327 | 2328 |
| 2328 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2329 const FeatureEntry* GetFeatureEntries(size_t* count) { |
| 2329 *count = arraysize(kFeatureEntries); | 2330 *count = arraysize(kFeatureEntries); |
| 2330 return kFeatureEntries; | 2331 return kFeatureEntries; |
| 2331 } | 2332 } |
| 2332 | 2333 |
| 2333 } // namespace testing | 2334 } // namespace testing |
| 2334 | 2335 |
| 2335 } // namespace about_flags | 2336 } // namespace about_flags |
| OLD | NEW |