Chromium Code Reviews| 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 { |