diff options
Diffstat (limited to 'chrome/browser/profile.cc')
-rw-r--r-- | chrome/browser/profile.cc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/chrome/browser/profile.cc b/chrome/browser/profile.cc index 1c76c49..cdb7c00 100644 --- a/chrome/browser/profile.cc +++ b/chrome/browser/profile.cc @@ -39,6 +39,7 @@ #include "chrome/common/pref_names.h" #include "chrome/common/render_messages.h" #include "grit/locale_settings.h" +#include "net/base/force_tls_state.h" using base::Time; using base::TimeDelta; @@ -171,6 +172,13 @@ class OffTheRecordProfileImpl : public Profile, return ssl_host_state_.get(); } + virtual net::ForceTLSState* GetForceTLSState() { + if (!force_tls_state_.get()) + force_tls_state_.reset(new net::ForceTLSState()); + + return force_tls_state_.get(); + } + virtual HistoryService* GetHistoryService(ServiceAccessType sat) { if (sat == EXPLICIT_ACCESS) { return profile_->GetHistoryService(sat); @@ -389,6 +397,9 @@ class OffTheRecordProfileImpl : public Profile, // the user visited while OTR. scoped_ptr<SSLHostState> ssl_host_state_; + // The ForceTLSState that only stores enabled sites in memory. + scoped_ptr<net::ForceTLSState> force_tls_state_; + // Extensions run in a different context in incognito mode. scoped_ptr<ExtensionProcessManager> extension_process_manager_; @@ -627,6 +638,13 @@ SSLHostState* ProfileImpl::GetSSLHostState() { return ssl_host_state_.get(); } +net::ForceTLSState* ProfileImpl::GetForceTLSState() { + if (!force_tls_state_.get()) + force_tls_state_.reset(new net::ForceTLSState()); + + return force_tls_state_.get(); +} + PrefService* ProfileImpl::GetPrefs() { if (!prefs_.get()) { prefs_.reset(new PrefService(GetPrefFilePath(), |