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

Unified Diff: net/base/openssl_memory_private_key_store.cc

Issue 5767005: Fix openssl after singleton refactor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 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 | « base/openssl_util.cc ('k') | net/base/x509_certificate_openssl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/openssl_memory_private_key_store.cc
diff --git a/net/base/openssl_memory_private_key_store.cc b/net/base/openssl_memory_private_key_store.cc
index 8dc69a0a52195105287ba7d40ae657e33555307b..6b65dbe4da35afdc07ab45266b82924666ea67fb 100644
--- a/net/base/openssl_memory_private_key_store.cc
+++ b/net/base/openssl_memory_private_key_store.cc
@@ -21,6 +21,10 @@ class OpenSSLMemoryKeyStore : public OpenSSLPrivateKeyStore {
public:
OpenSSLMemoryKeyStore() {}
+ static OpenSSLMemoryKeyStore* GetInstance() {
+ return Singleton<OpenSSLMemoryKeyStore>::get();
+ }
+
virtual ~OpenSSLMemoryKeyStore() {
AutoLock lock(lock_);
for (std::vector<EVP_PKEY*>::iterator it = keys_.begin();
@@ -57,7 +61,7 @@ class OpenSSLMemoryKeyStore : public OpenSSLPrivateKeyStore {
// static
OpenSSLPrivateKeyStore* OpenSSLPrivateKeyStore::GetInstance() {
- return Singleton<OpenSSLMemoryKeyStore>::get();
+ return OpenSSLMemoryKeyStore::GetInstance();
}
} // namespace net
« no previous file with comments | « base/openssl_util.cc ('k') | net/base/x509_certificate_openssl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698