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: reverted to NewTuple Created Nov. 21, 2016, 8:25 a.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
« no previous file with comments | « libadblockplus-android/jni/JniNotification.cpp ('k') | libadblockplus-android/jni/JniWebRequest.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
{
}
« no previous file with comments | « libadblockplus-android/jni/JniNotification.cpp ('k') | libadblockplus-android/jni/JniWebRequest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld