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

Unified Diff: libadblockplus-android/src/org/adblockplus/libadblockplus/JsEngine.java

Issue 29524596: Issue 5556 - make C++ implementation of LogSystem manageable only by JsEngine (Closed) Base URL: github.com:abby-sergz/libadblockplus-android.git
Patch Set: rebase Created Aug. 24, 2017, 1:39 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/src/org/adblockplus/libadblockplus/JsEngine.java
diff --git a/libadblockplus-android/src/org/adblockplus/libadblockplus/JsEngine.java b/libadblockplus-android/src/org/adblockplus/libadblockplus/JsEngine.java
index 80b4cfd64fb14ae0df1238eaa6d950b720ad5595..293176e5571fccbb6a92bde9cdaef1447bcc4091 100644
--- a/libadblockplus-android/src/org/adblockplus/libadblockplus/JsEngine.java
+++ b/libadblockplus-android/src/org/adblockplus/libadblockplus/JsEngine.java
@@ -32,7 +32,7 @@ public final class JsEngine implements Disposable
public JsEngine(final AppInfo appInfo, final LogSystem logSystem)
{
- this(ctor(appInfo, logSystem != null ? logSystem.ptr : 0));
+ this(ctor(appInfo, logSystem));
}
public JsEngine(final AppInfo appInfo)
@@ -132,7 +132,7 @@ public final class JsEngine implements Disposable
private final static native void registerNatives();
- private final static native long ctor(AppInfo appInfo, long logSystemPtr);
+ private final static native long ctor(AppInfo appInfo, LogSystem logSystem);
private final static native void setEventCallback(long ptr, String eventName, long callback);
« no previous file with comments | « libadblockplus-android/jni/JniLogSystem.cpp ('k') | libadblockplus-android/src/org/adblockplus/libadblockplus/LogSystem.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld