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

Unified Diff: net/base/ssl_config_service.cc

Issue 8772014: Add a preference for enabling the TLS origin-bound certificates extension. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Change policy_templates.json as mnissler suggested Created 9 years 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 | « net/base/ssl_config_service.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/ssl_config_service.cc
===================================================================
--- net/base/ssl_config_service.cc (revision 112382)
+++ net/base/ssl_config_service.cc (working copy)
@@ -59,7 +59,6 @@
}
static bool g_cached_info_enabled = false;
-static bool g_origin_bound_certs_enabled = false;
static bool g_false_start_enabled = true;
static bool g_dns_cert_provenance_checking = false;
base::LazyInstance<scoped_refptr<CRLSet>,
@@ -105,16 +104,6 @@
return g_cached_info_enabled;
}
-// static
-void SSLConfigService::EnableOriginBoundCerts() {
- g_origin_bound_certs_enabled = true;
-}
-
-// static
-bool SSLConfigService::origin_bound_certs_enabled() {
- return g_origin_bound_certs_enabled;
-}
-
void SSLConfigService::AddObserver(Observer* observer) {
observer_list_.AddObserver(observer);
}
@@ -132,7 +121,6 @@
ssl_config->dns_cert_provenance_checking_enabled =
g_dns_cert_provenance_checking;
ssl_config->cached_info_enabled = g_cached_info_enabled;
- ssl_config->origin_bound_certs_enabled = g_origin_bound_certs_enabled;
}
void SSLConfigService::ProcessConfigUpdate(const SSLConfig& orig_config,
@@ -142,7 +130,9 @@
(orig_config.ssl3_enabled != new_config.ssl3_enabled) ||
(orig_config.tls1_enabled != new_config.tls1_enabled) ||
(orig_config.disabled_cipher_suites !=
- new_config.disabled_cipher_suites);
+ new_config.disabled_cipher_suites) ||
+ (orig_config.origin_bound_certs_enabled !=
+ new_config.origin_bound_certs_enabled);
if (config_changed)
FOR_EACH_OBSERVER(Observer, observer_list_, OnSSLConfigChanged());
« no previous file with comments | « net/base/ssl_config_service.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698