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

Unified Diff: adblock-android/jni/JniPlatform.cpp

Issue 29908555: Issue 7035 - Update libadblockplus dependency (Closed) Base URL: git@github.com:adblockplus/libadblockplus-android.git@d150f08d5d72de8938c7ebbdccd9b0c4e06b4070
Patch Set: Issue 7035 - Update libadblockplus dependency Created Oct. 15, 2018, 12:48 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
« no previous file with comments | « adblock-android/jni/JniFilterEngine.cpp ('k') | adblock-android/jni/JniUpdater.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: adblock-android/jni/JniPlatform.cpp
diff --git a/adblock-android/jni/JniPlatform.cpp b/adblock-android/jni/JniPlatform.cpp
index 11a3a4848a68b78b995f8734007646cc08e92d8a..afa669ccd935210aac24735161969579685b6f74 100644
--- a/adblock-android/jni/JniPlatform.cpp
+++ b/adblock-android/jni/JniPlatform.cpp
@@ -133,6 +133,15 @@ static void JNICALL JniEnsureFilterEngine(JNIEnv* env, jclass clazz, jlong ptr)
CATCH_AND_THROW(env)
}
+static void JNICALL JniEnsureUpdater(JNIEnv* env, jclass clazz, jlong ptr)
+{
+ try
+ {
+ GetPlatformRef(ptr).GetUpdater();
+ }
+ CATCH_AND_THROW(env)
+}
+
static JNINativeMethod methods[] =
{
{ (char*)"ctor", (char*)"(" TYP("LogSystem") TYP("WebRequest") "Ljava/lang/String;)J", (void*)JniCtor },
@@ -141,7 +150,8 @@ static JNINativeMethod methods[] =
{ (char*)"setUpJsEngine", (char*)"(J" TYP("AppInfo") "J)V", (void*)JniSetUpJsEngine },
{ (char*)"getJsEnginePtr", (char*)"(J)J", (void*)JniGetJsEnginePtr },
{ (char*)"setUpFilterEngine", (char*)"(J" TYP("IsAllowedConnectionCallback") ")V", (void*)JniSetUpFilterEngine },
- { (char*)"ensureFilterEngine", (char*)"(J)V", (void*)JniEnsureFilterEngine }
+ { (char*)"ensureFilterEngine", (char*)"(J)V", (void*)JniEnsureFilterEngine },
+ { (char*)"ensureUpdater", (char*)"(J)V", (void*)JniEnsureUpdater }
};
extern "C" JNIEXPORT void JNICALL Java_org_adblockplus_libadblockplus_Platform_registerNatives(JNIEnv *env, jclass clazz)
« no previous file with comments | « adblock-android/jni/JniFilterEngine.cpp ('k') | adblock-android/jni/JniUpdater.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld