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

Unified Diff: net/cert/cert_database.cc

Issue 117303003: Make net::CertDatabase and PKCS12InitSingleton singletons Leaky. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 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 | « no previous file | net/third_party/mozilla_security_manager/nsPKCS12Blob.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/cert_database.cc
diff --git a/net/cert/cert_database.cc b/net/cert/cert_database.cc
index f36562aadf75d90c72d0e3768cc904fd0b95a73b..d6a9b1b77fc4c0b8332d31e0aea39e738ab78e82 100644
--- a/net/cert/cert_database.cc
+++ b/net/cert/cert_database.cc
@@ -11,7 +11,9 @@ namespace net {
// static
CertDatabase* CertDatabase::GetInstance() {
- return Singleton<CertDatabase>::get();
+ // Leaky so it can be initialized on worker threads, and because there is no
+ // useful cleanup to do.
+ return Singleton<CertDatabase, LeakySingletonTraits<CertDatabase> >::get();
}
void CertDatabase::AddObserver(Observer* observer) {
« no previous file with comments | « no previous file | net/third_party/mozilla_security_manager/nsPKCS12Blob.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698