| 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 27 matching lines...) Expand all Loading... |
| 38 #include "components/flags_ui/feature_entry_macros.h" | 38 #include "components/flags_ui/feature_entry_macros.h" |
| 39 #include "components/flags_ui/flags_storage.h" | 39 #include "components/flags_ui/flags_storage.h" |
| 40 #include "components/flags_ui/flags_ui_switches.h" | 40 #include "components/flags_ui/flags_ui_switches.h" |
| 41 #include "components/nacl/common/nacl_switches.h" | 41 #include "components/nacl/common/nacl_switches.h" |
| 42 #include "components/offline_pages/offline_page_switches.h" | 42 #include "components/offline_pages/offline_page_switches.h" |
| 43 #include "components/omnibox/browser/omnibox_switches.h" | 43 #include "components/omnibox/browser/omnibox_switches.h" |
| 44 #include "components/password_manager/core/common/password_manager_features.h" | 44 #include "components/password_manager/core/common/password_manager_features.h" |
| 45 #include "components/password_manager/core/common/password_manager_switches.h" | 45 #include "components/password_manager/core/common/password_manager_switches.h" |
| 46 #include "components/proximity_auth/switches.h" | 46 #include "components/proximity_auth/switches.h" |
| 47 #include "components/search/search_switches.h" | 47 #include "components/search/search_switches.h" |
| 48 #include "components/security_state/switches.h" |
| 48 #include "components/signin/core/common/signin_switches.h" | 49 #include "components/signin/core/common/signin_switches.h" |
| 49 #include "components/sync_driver/sync_driver_switches.h" | 50 #include "components/sync_driver/sync_driver_switches.h" |
| 50 #include "components/tracing/tracing_switches.h" | 51 #include "components/tracing/tracing_switches.h" |
| 51 #include "components/version_info/version_info.h" | 52 #include "components/version_info/version_info.h" |
| 52 #include "content/public/browser/user_metrics.h" | 53 #include "content/public/browser/user_metrics.h" |
| 53 #include "content/public/common/content_features.h" | 54 #include "content/public/common/content_features.h" |
| 54 #include "content/public/common/content_switches.h" | 55 #include "content/public/common/content_switches.h" |
| 55 #include "grit/components_strings.h" | 56 #include "grit/components_strings.h" |
| 56 #include "media/base/media_switches.h" | 57 #include "media/base/media_switches.h" |
| 57 #include "media/midi/midi_switches.h" | 58 #include "media/midi/midi_switches.h" |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 // NOTE: As the default value must be the empty string, the mask excluding | 167 // NOTE: As the default value must be the empty string, the mask excluding |
| 167 // the PNaCl translator and secure shell is substituted elsewhere. | 168 // the PNaCl translator and secure shell is substituted elsewhere. |
| 168 { IDS_NACL_DEBUG_MASK_CHOICE_EXCLUDE_UTILS_PNACL, "", "" }, | 169 { IDS_NACL_DEBUG_MASK_CHOICE_EXCLUDE_UTILS_PNACL, "", "" }, |
| 169 { IDS_NACL_DEBUG_MASK_CHOICE_DEBUG_ALL, switches::kNaClDebugMask, "*://*" }, | 170 { IDS_NACL_DEBUG_MASK_CHOICE_DEBUG_ALL, switches::kNaClDebugMask, "*://*" }, |
| 170 { IDS_NACL_DEBUG_MASK_CHOICE_INCLUDE_DEBUG, | 171 { IDS_NACL_DEBUG_MASK_CHOICE_INCLUDE_DEBUG, |
| 171 switches::kNaClDebugMask, "*://*/*debug.nmf" } | 172 switches::kNaClDebugMask, "*://*/*debug.nmf" } |
| 172 }; | 173 }; |
| 173 #endif | 174 #endif |
| 174 | 175 |
| 175 const FeatureEntry::Choice kMarkNonSecureAsChoices[] = { | 176 const FeatureEntry::Choice kMarkNonSecureAsChoices[] = { |
| 176 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, | 177 {IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", ""}, |
| 177 { IDS_MARK_NON_SECURE_AS_NEUTRAL, | 178 {IDS_MARK_NON_SECURE_AS_NEUTRAL, security_state::switches::kMarkNonSecureAs, |
| 178 switches::kMarkNonSecureAs, switches::kMarkNonSecureAsNeutral}, | 179 security_state::switches::kMarkNonSecureAsNeutral}, |
| 179 { IDS_MARK_NON_SECURE_AS_NON_SECURE, | 180 {IDS_MARK_NON_SECURE_AS_NON_SECURE, |
| 180 switches::kMarkNonSecureAs, switches::kMarkNonSecureAsNonSecure} | 181 security_state::switches::kMarkNonSecureAs, |
| 181 }; | 182 security_state::switches::kMarkNonSecureAsNonSecure}}; |
| 182 | 183 |
| 183 const FeatureEntry::Choice kDataReductionProxyLoFiChoices[] = { | 184 const FeatureEntry::Choice kDataReductionProxyLoFiChoices[] = { |
| 184 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, | 185 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, |
| 185 { IDS_FLAGS_DATA_REDUCTION_PROXY_LO_FI_ALWAYS_ON, | 186 { IDS_FLAGS_DATA_REDUCTION_PROXY_LO_FI_ALWAYS_ON, |
| 186 data_reduction_proxy::switches::kDataReductionProxyLoFi, | 187 data_reduction_proxy::switches::kDataReductionProxyLoFi, |
| 187 data_reduction_proxy::switches::kDataReductionProxyLoFiValueAlwaysOn}, | 188 data_reduction_proxy::switches::kDataReductionProxyLoFiValueAlwaysOn}, |
| 188 { IDS_FLAGS_DATA_REDUCTION_PROXY_LO_FI_CELLULAR_ONLY, | 189 { IDS_FLAGS_DATA_REDUCTION_PROXY_LO_FI_CELLULAR_ONLY, |
| 189 data_reduction_proxy::switches::kDataReductionProxyLoFi, | 190 data_reduction_proxy::switches::kDataReductionProxyLoFi, |
| 190 data_reduction_proxy::switches:: | 191 data_reduction_proxy::switches:: |
| 191 kDataReductionProxyLoFiValueCellularOnly}, | 192 kDataReductionProxyLoFiValueCellularOnly}, |
| (...skipping 2094 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2286 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2287 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
| 2287 | 2288 |
| 2288 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2289 const FeatureEntry* GetFeatureEntries(size_t* count) { |
| 2289 *count = arraysize(kFeatureEntries); | 2290 *count = arraysize(kFeatureEntries); |
| 2290 return kFeatureEntries; | 2291 return kFeatureEntries; |
| 2291 } | 2292 } |
| 2292 | 2293 |
| 2293 } // namespace testing | 2294 } // namespace testing |
| 2294 | 2295 |
| 2295 } // namespace about_flags | 2296 } // namespace about_flags |
| OLD | NEW |