diff options
author | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-22 04:28:45 +0000 |
---|---|---|
committer | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-22 04:28:45 +0000 |
commit | b7254a7f4d0a2eec8259e3f4e34a997cf8504430 (patch) | |
tree | 9f00c1b1b535d5576366bb1896c5208b904ea082 /chrome/browser/strict_transport_security_persister.cc | |
parent | 941b4c5b6303aad0b3426440cabdf7cb8a90be46 (diff) | |
download | chromium_src-b7254a7f4d0a2eec8259e3f4e34a997cf8504430.zip chromium_src-b7254a7f4d0a2eec8259e3f4e34a997cf8504430.tar.gz chromium_src-b7254a7f4d0a2eec8259e3f4e34a997cf8504430.tar.bz2 |
URLRequestContext needs to keep a reference to StrictTransportSecurityState
StrictTransportSecurityPersister needs to unregister itself as the delegate before it gets deleted.
BUG=21897
TEST=see bug
Review URL: http://codereview.chromium.org/217012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26794 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/strict_transport_security_persister.cc')
-rw-r--r-- | chrome/browser/strict_transport_security_persister.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/strict_transport_security_persister.cc b/chrome/browser/strict_transport_security_persister.cc index c9120ad..310cf23 100644 --- a/chrome/browser/strict_transport_security_persister.cc +++ b/chrome/browser/strict_transport_security_persister.cc @@ -29,6 +29,10 @@ StrictTransportSecurityPersister::StrictTransportSecurityPersister( 1000 /* 1 second */); } +StrictTransportSecurityPersister::~StrictTransportSecurityPersister() { + strict_transport_security_state_->SetDelegate(NULL); +} + void StrictTransportSecurityPersister::LoadState() { // Runs on |file_thread_| AutoLock locked_(lock_); |