summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ssl/ssl_policy_backend.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ssl/ssl_policy_backend.cc')
-rw-r--r--chrome/browser/ssl/ssl_policy_backend.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/chrome/browser/ssl/ssl_policy_backend.cc b/chrome/browser/ssl/ssl_policy_backend.cc
index 9b1eed8..8852190 100644
--- a/chrome/browser/ssl/ssl_policy_backend.cc
+++ b/chrome/browser/ssl/ssl_policy_backend.cc
@@ -13,6 +13,7 @@
#include "chrome/common/notification_service.h"
#include "grit/generated_resources.h"
#include "grit/theme_resources.h"
+#include "net/base/force_tls_state.h"
using WebKit::WebConsoleMessage;
@@ -67,7 +68,8 @@ class SSLInfoBarDelegate : public ConfirmInfoBarDelegate {
SSLPolicyBackend::SSLPolicyBackend(NavigationController* controller)
: controller_(controller),
- ssl_host_state_(controller->profile()->GetSSLHostState()) {
+ ssl_host_state_(controller->profile()->GetSSLHostState()),
+ force_tls_state_(controller->profile()->GetForceTLSState()) {
DCHECK(controller_);
}
@@ -159,6 +161,10 @@ bool SSLPolicyBackend::DidAllowMixedContentForHost(
return ssl_host_state_->DidAllowMixedContentForHost(host);
}
+bool SSLPolicyBackend::IsForceTLSEnabledForHost(const std::string& host) const {
+ return force_tls_state_->IsEnabledForHost(host);
+}
+
void SSLPolicyBackend::Reload() {
controller_->Reload(true);
}