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

Unified Diff: base/android/jni_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
Index: base/android/jni_android.cc
===================================================================
--- base/android/jni_android.cc (revision 154951)
+++ base/android/jni_android.cc (working copy)
@@ -20,7 +20,10 @@
JavaVM* g_jvm = NULL;
-base::LazyInstance<base::android::ScopedJavaGlobalRef<jobject> >
+// We allow the global app context to be leaked, because it is used from a
+// non-joinable worker that is not stopped on shutdown and there is no harm
+// to leak it.
Ryan Sleevi 2012/09/05 17:29:00 style nit: Don't use "We" in comments. Broader co
Ryan Sleevi 2012/09/05 17:29:00 nit: Within an unnamed namespace, try to preserve
Johnny(Jianning) Ding 2012/09/06 10:34:44 Done.
Johnny(Jianning) Ding 2012/09/06 10:34:44 Done.
+base::LazyInstance<base::android::ScopedJavaGlobalRef<jobject> >::Leaky
g_application_context = LAZY_INSTANCE_INITIALIZER;
struct MethodIdentifier {
« no previous file with comments | « no previous file | net/base/openssl_private_key_store_android.cc » ('j') | net/base/openssl_private_key_store_android.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698