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

Unified Diff: net/base/openssl_private_key_store_android.cc

Issue 10580038: Allow OpenSSLPrivateKeyStore and Android global app context leaking. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 months 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
« base/android/jni_android.cc ('K') | « base/android/jni_android.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/openssl_private_key_store_android.cc
===================================================================
--- net/base/openssl_private_key_store_android.cc (revision 154951)
+++ net/base/openssl_private_key_store_android.cc (working copy)
@@ -47,7 +47,10 @@
}
static OpenSSLKeyStoreAndroid* GetInstance() {
- return Singleton<OpenSSLKeyStoreAndroid>::get();
+ // We allow the OpenSSL key store to be leaked, because it is used
+ // from a non-joinable worker that is not stopped on shutdown.
Ryan Sleevi 2012/09/05 17:29:00 comment nit: "we"
Johnny(Jianning) Ding 2012/09/06 10:34:44 Done.
+ return Singleton<OpenSSLKeyStoreAndroid,
Ryan Sleevi 2012/09/05 17:29:00 style nit: In general, templates such as this tend
Johnny(Jianning) Ding 2012/09/06 10:34:44 Done.
+ LeakySingletonTraits<OpenSSLKeyStoreAndroid> >::get();
Ryan Sleevi 2012/09/05 17:29:00 nit: It may be helpful to have this as a typedef (
Johnny(Jianning) Ding 2012/09/06 10:34:44 Done.
}
private:
« base/android/jni_android.cc ('K') | « base/android/jni_android.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698