Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: libadblockplus-android/jni/JniShowNotificationCallback.cpp

Issue 29354787: Issue 4442 - Cache class and ctors references in JNI_Load/UnLoad (Closed)
Patch Set: Created Sept. 23, 2016, 12:55 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: libadblockplus-android/jni/JniShowNotificationCallback.cpp
diff --git a/libadblockplus-android/jni/JniShowNotificationCallback.cpp b/libadblockplus-android/jni/JniShowNotificationCallback.cpp
index 626cb44ca64c9df5a986ac7e530830f79440f687..38f2d9df5f51c2f1d1b47898b9d8ae15f3beafb9 100644
--- a/libadblockplus-android/jni/JniShowNotificationCallback.cpp
+++ b/libadblockplus-android/jni/JniShowNotificationCallback.cpp
@@ -33,8 +33,7 @@ static void JNICALL JniDtor(JNIEnv* env, jclass clazz, jlong ptr)
JniShowNotificationCallback::JniShowNotificationCallback(JNIEnv* env,
jobject callbackObject)
- : JniCallbackBase(env, callbackObject), notificationClass(
- new JniGlobalReference<jclass>(env, env->FindClass(PKG("Notification"))))
+ : JniCallbackBase(env, callbackObject)
{
}

Powered by Google App Engine
This is Rietveld