Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(398)

Side by Side Diff: chrome/browser/about_flags.cc

Issue 1539043002: Pull SecurityStateModel out into a component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: build fix Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 29 matching lines...) Expand all
40 #include "components/flags_ui/feature_entry_macros.h" 40 #include "components/flags_ui/feature_entry_macros.h"
41 #include "components/flags_ui/flags_storage.h" 41 #include "components/flags_ui/flags_storage.h"
42 #include "components/flags_ui/flags_ui_switches.h" 42 #include "components/flags_ui/flags_ui_switches.h"
43 #include "components/nacl/common/nacl_switches.h" 43 #include "components/nacl/common/nacl_switches.h"
44 #include "components/offline_pages/offline_page_switches.h" 44 #include "components/offline_pages/offline_page_switches.h"
45 #include "components/omnibox/browser/omnibox_switches.h" 45 #include "components/omnibox/browser/omnibox_switches.h"
46 #include "components/password_manager/core/common/password_manager_features.h" 46 #include "components/password_manager/core/common/password_manager_features.h"
47 #include "components/password_manager/core/common/password_manager_switches.h" 47 #include "components/password_manager/core/common/password_manager_switches.h"
48 #include "components/proximity_auth/switches.h" 48 #include "components/proximity_auth/switches.h"
49 #include "components/search/search_switches.h" 49 #include "components/search/search_switches.h"
50 #include "components/security_state/switches.h"
50 #include "components/signin/core/common/signin_switches.h" 51 #include "components/signin/core/common/signin_switches.h"
51 #include "components/sync_driver/sync_driver_switches.h" 52 #include "components/sync_driver/sync_driver_switches.h"
52 #include "components/tracing/tracing_switches.h" 53 #include "components/tracing/tracing_switches.h"
53 #include "components/version_info/version_info.h" 54 #include "components/version_info/version_info.h"
54 #include "content/public/browser/user_metrics.h" 55 #include "content/public/browser/user_metrics.h"
55 #include "content/public/common/content_features.h" 56 #include "content/public/common/content_features.h"
56 #include "content/public/common/content_switches.h" 57 #include "content/public/common/content_switches.h"
57 #include "grit/components_strings.h" 58 #include "grit/components_strings.h"
58 #include "media/base/media_switches.h" 59 #include "media/base/media_switches.h"
59 #include "media/midi/midi_switches.h" 60 #include "media/midi/midi_switches.h"
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 // NOTE: As the default value must be the empty string, the mask excluding 171 // NOTE: As the default value must be the empty string, the mask excluding
171 // the PNaCl translator and secure shell is substituted elsewhere. 172 // the PNaCl translator and secure shell is substituted elsewhere.
172 { IDS_NACL_DEBUG_MASK_CHOICE_EXCLUDE_UTILS_PNACL, "", "" }, 173 { IDS_NACL_DEBUG_MASK_CHOICE_EXCLUDE_UTILS_PNACL, "", "" },
173 { IDS_NACL_DEBUG_MASK_CHOICE_DEBUG_ALL, switches::kNaClDebugMask, "*://*" }, 174 { IDS_NACL_DEBUG_MASK_CHOICE_DEBUG_ALL, switches::kNaClDebugMask, "*://*" },
174 { IDS_NACL_DEBUG_MASK_CHOICE_INCLUDE_DEBUG, 175 { IDS_NACL_DEBUG_MASK_CHOICE_INCLUDE_DEBUG,
175 switches::kNaClDebugMask, "*://*/*debug.nmf" } 176 switches::kNaClDebugMask, "*://*/*debug.nmf" }
176 }; 177 };
177 #endif 178 #endif
178 179
179 const FeatureEntry::Choice kMarkNonSecureAsChoices[] = { 180 const FeatureEntry::Choice kMarkNonSecureAsChoices[] = {
180 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, 181 {IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", ""},
181 { IDS_MARK_NON_SECURE_AS_NEUTRAL, 182 {IDS_MARK_NON_SECURE_AS_NEUTRAL, security_state::switches::kMarkNonSecureAs,
182 switches::kMarkNonSecureAs, switches::kMarkNonSecureAsNeutral}, 183 security_state::switches::kMarkNonSecureAsNeutral},
183 { IDS_MARK_NON_SECURE_AS_NON_SECURE, 184 {IDS_MARK_NON_SECURE_AS_NON_SECURE,
184 switches::kMarkNonSecureAs, switches::kMarkNonSecureAsNonSecure} 185 security_state::switches::kMarkNonSecureAs,
185 }; 186 security_state::switches::kMarkNonSecureAsNonSecure}};
186 187
187 const FeatureEntry::Choice kDataReductionProxyLoFiChoices[] = { 188 const FeatureEntry::Choice kDataReductionProxyLoFiChoices[] = {
188 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" }, 189 { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" },
189 { IDS_FLAGS_DATA_REDUCTION_PROXY_LO_FI_ALWAYS_ON, 190 { IDS_FLAGS_DATA_REDUCTION_PROXY_LO_FI_ALWAYS_ON,
190 data_reduction_proxy::switches::kDataReductionProxyLoFi, 191 data_reduction_proxy::switches::kDataReductionProxyLoFi,
191 data_reduction_proxy::switches::kDataReductionProxyLoFiValueAlwaysOn}, 192 data_reduction_proxy::switches::kDataReductionProxyLoFiValueAlwaysOn},
192 { IDS_FLAGS_DATA_REDUCTION_PROXY_LO_FI_CELLULAR_ONLY, 193 { IDS_FLAGS_DATA_REDUCTION_PROXY_LO_FI_CELLULAR_ONLY,
193 data_reduction_proxy::switches::kDataReductionProxyLoFi, 194 data_reduction_proxy::switches::kDataReductionProxyLoFi,
194 data_reduction_proxy::switches:: 195 data_reduction_proxy::switches::
195 kDataReductionProxyLoFiValueCellularOnly}, 196 kDataReductionProxyLoFiValueCellularOnly},
(...skipping 2140 matching lines...) Expand 10 before | Expand all | Expand 10 after
2336 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2337 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2337 2338
2338 const FeatureEntry* GetFeatureEntries(size_t* count) { 2339 const FeatureEntry* GetFeatureEntries(size_t* count) {
2339 *count = arraysize(kFeatureEntries); 2340 *count = arraysize(kFeatureEntries);
2340 return kFeatureEntries; 2341 return kFeatureEntries;
2341 } 2342 }
2342 2343
2343 } // namespace testing 2344 } // namespace testing
2344 2345
2345 } // namespace about_flags 2346 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698