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

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

Issue 29524565: Issue 5556 - remove LogSystem setters (Closed) Base URL: github.com:abby-sergz/libadblockplus-android.git
Patch Set: Created Aug. 23, 2017, 11:49 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
Index: libadblockplus-android/src/org/adblockplus/libadblockplus/android/AdblockEngine.java
diff --git a/libadblockplus-android/src/org/adblockplus/libadblockplus/android/AdblockEngine.java b/libadblockplus-android/src/org/adblockplus/libadblockplus/android/AdblockEngine.java
index 8bdebb9c6de033e05ff69ddac0953e5243b2ce92..9dbd9c358060125a4d9490fc9b9da42ce6cdf6be 100644
--- a/libadblockplus-android/src/org/adblockplus/libadblockplus/android/AdblockEngine.java
+++ b/libadblockplus-android/src/org/adblockplus/libadblockplus/android/AdblockEngine.java
@@ -253,14 +253,12 @@ public final class AdblockEngine
private void createEngines()
{
- engine.jsEngine = new JsEngine(appInfo);
+ engine.logSystem = new AndroidLogSystem();
+ engine.jsEngine = new JsEngine(appInfo, engine.logSystem);
engine.jsEngine.setDefaultFileSystem(basePath);
engine.jsEngine.setWebRequest(engine.webRequest);
- engine.logSystem = new AndroidLogSystem();
- engine.jsEngine.setLogSystem(engine.logSystem);
-
engine.filterEngine = new FilterEngine(engine.jsEngine, isAllowedConnectionCallback);
}
}

Powered by Google App Engine
This is Rietveld