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

Unified Diff: chrome/browser/about_flags.cc

Issue 693963003: Add minimum TLS version control to about:flags and Finch gate it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ... Created 6 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/net/ssl_config_service_manager_pref.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/about_flags.cc
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index 407d76b341203f79827e48966fa9ccf54739dade..0e487b1fae37c41a9ca9b665c32f91fc5c5baad4 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -473,6 +473,18 @@ const Experiment::Choice kAutofillSyncCredentialChoices[] = {
password_manager::switches::kDisallowAutofillSyncCredential, ""},
};
+const Experiment::Choice kSSLVersionMinChoices[] = {
+ { IDS_FLAGS_SSL_VERSION_DEFAULT, "", "" },
+ { IDS_FLAGS_SSL_VERSION_SSLV3, switches::kSSLVersionMin,
+ switches::kSSLVersionSSLv3 },
+ { IDS_FLAGS_SSL_VERSION_TLSV1, switches::kSSLVersionMin,
+ switches::kSSLVersionTLSv1 },
+ { IDS_FLAGS_SSL_VERSION_TLSV11, switches::kSSLVersionMin,
+ switches::kSSLVersionTLSv11 },
+ { IDS_FLAGS_SSL_VERSION_TLSV12, switches::kSSLVersionMin,
+ switches::kSSLVersionTLSv12 },
+};
+
// RECORDING USER METRICS FOR FLAGS:
// -----------------------------------------------------------------------------
// The first line of the experiment is the internal name. If you'd like to
@@ -2017,8 +2029,15 @@ const Experiment kExperiments[] = {
IDS_FLAGS_DISABLE_NEW_ZIP_UNPACKER_DESCRIPTION,
kOsCrOS,
SINGLE_VALUE_TYPE(chromeos::switches::kDisableNewZIPUnpacker)
- }
+ },
#endif // defined(OS_CHROMEOS)
+ {
+ "ssl-version-min",
+ IDS_FLAGS_SSL_VERSION_MIN_NAME,
+ IDS_FLAGS_SSL_VERSION_MIN_DESCRIPTION,
+ kOsAll,
+ MULTI_VALUE_TYPE(kSSLVersionMinChoices)
+ },
// NOTE: Adding new command-line switches requires adding corresponding
// entries to enum "LoginCustomFlags" in histograms.xml. See note in
// histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/net/ssl_config_service_manager_pref.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698