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: Created Aug. 23, 2017, 12:10 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 d841e0a39d3366687dd7b92f9d6fa0da0a7a16fc..7d1075e285e7211702ce4e617c569dff6ecac2b0 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