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

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

Issue 29600561: Issue 6001 - Pass IV8IsolateProvider to Helper (Closed)
Patch Set: Created Nov. 7, 2017, 7:42 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 | « no previous file | libadblockplus-android/jni/JniPlatform.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java
diff --git a/libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java b/libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java
index 4a16625a1fbd269d746c03ca15dc3e277629e2cb..965bafcbc97203707c19a503e44d02894808da06 100644
--- a/libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java
+++ b/libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java
@@ -59,7 +59,7 @@ public class AdblockHelper
private AdblockEngine engine;
private AdblockSettingsStorage storage;
private CountDownLatch engineCreated;
- private Long v8IsolatePtr;
+ private Long v8IsolateProviderPtr;
/*
Simple ARC management for AdblockEngine
@@ -132,9 +132,10 @@ public class AdblockHelper
return this;
}
- public void useV8Isolate(long ptr)
+ public AdblockHelper useV8IsolateProvider(long ptr)
{
- this.v8IsolatePtr = ptr;
+ this.v8IsolateProviderPtr = ptr;
+ return this;
sergei 2017/11/07 09:58:45 Changing of the return value is an unrelated chang
anton 2017/11/07 10:17:05 Agree it's unrelated in general. Just want to keep
}
private void createAdblock()
@@ -158,9 +159,9 @@ public class AdblockHelper
.setIsAllowedConnectionCallback(isAllowedConnectionCallback)
.enableElementHiding(true);
- if (v8IsolatePtr != null)
+ if (v8IsolateProviderPtr != null)
{
- builder.useV8Isolate(v8IsolatePtr);
+ builder.useV8IsolateProvider(v8IsolateProviderPtr);
}
// if preloaded subscriptions provided
« no previous file with comments | « no previous file | libadblockplus-android/jni/JniPlatform.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld