diff options
author | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-23 23:51:22 +0000 |
---|---|---|
committer | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-23 23:51:22 +0000 |
commit | a2255c5a52ca788ff105b3cb31da68bb5d61c885 (patch) | |
tree | 8c07d35d7b18340f922259c63c27a7a665894b4b /chrome/browser/cert_store.h | |
parent | 3ada41b2341303941e4f01b8986bee567bfde14d (diff) | |
download | chromium_src-a2255c5a52ca788ff105b3cb31da68bb5d61c885.zip chromium_src-a2255c5a52ca788ff105b3cb31da68bb5d61c885.tar.gz chromium_src-a2255c5a52ca788ff105b3cb31da68bb5d61c885.tar.bz2 |
Fixes leak of CertStore on shutdown.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/18568
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8599 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cert_store.h')
-rw-r--r-- | chrome/browser/cert_store.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/chrome/browser/cert_store.h b/chrome/browser/cert_store.h index 48b53ef..8c793b2 100644 --- a/chrome/browser/cert_store.h +++ b/chrome/browser/cert_store.h @@ -9,6 +9,7 @@ #include <map> #include "base/lock.h" +#include "base/singleton.h" #include "chrome/common/notification_service.h" #include "net/base/x509_certificate.h" @@ -24,9 +25,6 @@ class CertStore : public NotificationObserver { public: - // Creates the singleton instance. Should be called from the UI thread. - static void Initialize(); - // Returns the singleton instance of the CertStore. static CertStore* GetSharedInstance(); @@ -48,6 +46,8 @@ class CertStore : public NotificationObserver { const NotificationDetails& details); private: + friend struct DefaultSingletonTraits<CertStore>; + CertStore(); ~CertStore(); @@ -58,8 +58,6 @@ class CertStore : public NotificationObserver { // Removes all the certs associated with the specified process from the store. void RemoveCertsForRenderProcesHost(int render_process_host_id); - static CertStore* instance_; - typedef std::multimap<int, int> IDMap; typedef std::map<int, scoped_refptr<net::X509Certificate> > CertMap; typedef std::map<net::X509Certificate*, int, net::X509Certificate::LessThan> |