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

Issue 29678590: Issue 6307 - Introduce external engine created callback (Closed)

Created:
Jan. 24, 2018, 12:46 p.m. by anton
Modified:
Jan. 26, 2018, 1:22 p.m.
Reviewers:
diegocarloslima, jens
CC:
René Jeschke, sergei
Visibility:
Public.

Description

Issue 6307 - Introduce external engine created callback

Patch Set 1 #

Total comments: 9

Patch Set 2 : added 'clear..()' methods, updated README #

Total comments: 1

Patch Set 3 : introduced custom listener interfaces #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -26 lines) Patch
M README.md View 1 2 1 chunk +15 lines, -0 lines 0 comments Download
M libadblockplus-android-settings/build.gradle View 1 chunk +2 lines, -2 lines 0 comments Download
M libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java View 1 2 4 chunks +11 lines, -9 lines 0 comments Download
M libadblockplus-android-webviewapp/build.gradle View 1 chunk +2 lines, -2 lines 0 comments Download
M libadblockplus-android-webviewapp/src/org/adblockplus/libadblockplus/android/webviewapp/Application.java View 1 2 3 chunks +24 lines, -1 line 0 comments Download
M libadblockplus-android/build.gradle View 1 chunk +2 lines, -2 lines 0 comments Download
M libadblockplus-android/src/org/adblockplus/libadblockplus/android/SingleInstanceEngineProvider.java View 1 2 6 chunks +44 lines, -10 lines 1 comment Download

Messages

Total messages: 16
anton
Jan. 24, 2018, 12:47 p.m. (2018-01-24 12:47:28 UTC) #1
anton
https://codereview.adblockplus.org/29678590/diff/29678591/libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java File libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java (right): https://codereview.adblockplus.org/29678590/diff/29678591/libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java#newcode51 libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java:51: private final Runnable engineCreatedCallback = new Runnable() We could ...
Jan. 24, 2018, 12:50 p.m. (2018-01-24 12:50:06 UTC) #2
anton
https://codereview.adblockplus.org/29678590/diff/29678591/libadblockplus-android/src/org/adblockplus/libadblockplus/android/SingleInstanceEngineProvider.java File libadblockplus-android/src/org/adblockplus/libadblockplus/android/SingleInstanceEngineProvider.java (right): https://codereview.adblockplus.org/29678590/diff/29678591/libadblockplus-android/src/org/adblockplus/libadblockplus/android/SingleInstanceEngineProvider.java#newcode100 libadblockplus-android/src/org/adblockplus/libadblockplus/android/SingleInstanceEngineProvider.java:100: public void removeEngineCreatedCallback(Runnable callback) "remove.." methods are not used ...
Jan. 24, 2018, 12:51 p.m. (2018-01-24 12:51:08 UTC) #3
sergei
looks good https://codereview.adblockplus.org/29678590/diff/29678591/libadblockplus-android/src/org/adblockplus/libadblockplus/android/SingleInstanceEngineProvider.java File libadblockplus-android/src/org/adblockplus/libadblockplus/android/SingleInstanceEngineProvider.java (right): https://codereview.adblockplus.org/29678590/diff/29678591/libadblockplus-android/src/org/adblockplus/libadblockplus/android/SingleInstanceEngineProvider.java#newcode100 libadblockplus-android/src/org/adblockplus/libadblockplus/android/SingleInstanceEngineProvider.java:100: public void removeEngineCreatedCallback(Runnable callback) On 2018/01/24 12:51:08, ...
Jan. 24, 2018, 1:33 p.m. (2018-01-24 13:33:02 UTC) #4
anton
On 2018/01/24 13:33:02, sergei wrote: > looks good > > https://codereview.adblockplus.org/29678590/diff/29678591/libadblockplus-android/src/org/adblockplus/libadblockplus/android/SingleInstanceEngineProvider.java > File > libadblockplus-android/src/org/adblockplus/libadblockplus/android/SingleInstanceEngineProvider.java ...
Jan. 24, 2018, 1:34 p.m. (2018-01-24 13:34:44 UTC) #5
anton
On 2018/01/24 13:34:44, anton wrote: > If it's created in AdblockHelper it can be undesired ...
Jan. 26, 2018, 8:10 a.m. (2018-01-26 08:10:46 UTC) #6
jens
https://codereview.adblockplus.org/29678590/diff/29678591/libadblockplus-android-webviewapp/src/org/adblockplus/libadblockplus/android/webviewapp/Application.java File libadblockplus-android-webviewapp/src/org/adblockplus/libadblockplus/android/webviewapp/Application.java (right): https://codereview.adblockplus.org/29678590/diff/29678591/libadblockplus-android-webviewapp/src/org/adblockplus/libadblockplus/android/webviewapp/Application.java#newcode38 libadblockplus-android-webviewapp/src/org/adblockplus/libadblockplus/android/webviewapp/Application.java:38: // put your Adblock FilterEngine init here Should we ...
Jan. 26, 2018, 8:15 a.m. (2018-01-26 08:15:22 UTC) #7
anton
https://codereview.adblockplus.org/29678590/diff/29678591/libadblockplus-android-webviewapp/src/org/adblockplus/libadblockplus/android/webviewapp/Application.java File libadblockplus-android-webviewapp/src/org/adblockplus/libadblockplus/android/webviewapp/Application.java (right): https://codereview.adblockplus.org/29678590/diff/29678591/libadblockplus-android-webviewapp/src/org/adblockplus/libadblockplus/android/webviewapp/Application.java#newcode38 libadblockplus-android-webviewapp/src/org/adblockplus/libadblockplus/android/webviewapp/Application.java:38: // put your Adblock FilterEngine init here On 2018/01/26 ...
Jan. 26, 2018, 8:22 a.m. (2018-01-26 08:22:59 UTC) #8
anton
On 2018/01/26 08:22:59, anton wrote: > https://codereview.adblockplus.org/29678590/diff/29678591/libadblockplus-android-webviewapp/src/org/adblockplus/libadblockplus/android/webviewapp/Application.java > File > libadblockplus-android-webviewapp/src/org/adblockplus/libadblockplus/android/webviewapp/Application.java > (right): > > ...
Jan. 26, 2018, 8:25 a.m. (2018-01-26 08:25:02 UTC) #9
jens
On 2018/01/26 08:25:02, anton wrote: > On 2018/01/26 08:22:59, anton wrote: > > > https://codereview.adblockplus.org/29678590/diff/29678591/libadblockplus-android-webviewapp/src/org/adblockplus/libadblockplus/android/webviewapp/Application.java ...
Jan. 26, 2018, 10:40 a.m. (2018-01-26 10:40:19 UTC) #10
diegocarloslima
https://codereview.adblockplus.org/29678590/diff/29680632/libadblockplus-android/src/org/adblockplus/libadblockplus/android/SingleInstanceEngineProvider.java File libadblockplus-android/src/org/adblockplus/libadblockplus/android/SingleInstanceEngineProvider.java (right): https://codereview.adblockplus.org/29678590/diff/29680632/libadblockplus-android/src/org/adblockplus/libadblockplus/android/SingleInstanceEngineProvider.java#newcode48 libadblockplus-android/src/org/adblockplus/libadblockplus/android/SingleInstanceEngineProvider.java:48: private List<Runnable> engineDisposedCallbacks = new LinkedList<Runnable>(); I would prefer ...
Jan. 26, 2018, 12:30 p.m. (2018-01-26 12:30:01 UTC) #11
anton
On 2018/01/26 12:30:01, diegocarloslima wrote: > https://codereview.adblockplus.org/29678590/diff/29680632/libadblockplus-android/src/org/adblockplus/libadblockplus/android/SingleInstanceEngineProvider.java > File > libadblockplus-android/src/org/adblockplus/libadblockplus/android/SingleInstanceEngineProvider.java > (right): > > ...
Jan. 26, 2018, 12:47 p.m. (2018-01-26 12:47:23 UTC) #12
diegocarloslima
https://codereview.adblockplus.org/29678590/diff/29680662/libadblockplus-android/src/org/adblockplus/libadblockplus/android/SingleInstanceEngineProvider.java File libadblockplus-android/src/org/adblockplus/libadblockplus/android/SingleInstanceEngineProvider.java (right): https://codereview.adblockplus.org/29678590/diff/29680662/libadblockplus-android/src/org/adblockplus/libadblockplus/android/SingleInstanceEngineProvider.java#newcode60 libadblockplus-android/src/org/adblockplus/libadblockplus/android/SingleInstanceEngineProvider.java:60: new LinkedList<EngineDisposedListener>(); Just one minor thing, the lists could ...
Jan. 26, 2018, 1:04 p.m. (2018-01-26 13:04:28 UTC) #13
diegocarloslima
On 2018/01/26 13:04:28, diegocarloslima wrote: > https://codereview.adblockplus.org/29678590/diff/29680662/libadblockplus-android/src/org/adblockplus/libadblockplus/android/SingleInstanceEngineProvider.java > File > libadblockplus-android/src/org/adblockplus/libadblockplus/android/SingleInstanceEngineProvider.java > (right): > > ...
Jan. 26, 2018, 1:05 p.m. (2018-01-26 13:05:47 UTC) #14
anton
On 2018/01/26 13:05:47, diegocarloslima wrote: > On 2018/01/26 13:04:28, diegocarloslima wrote: > > > https://codereview.adblockplus.org/29678590/diff/29680662/libadblockplus-android/src/org/adblockplus/libadblockplus/android/SingleInstanceEngineProvider.java ...
Jan. 26, 2018, 1:07 p.m. (2018-01-26 13:07:33 UTC) #15
jens
Jan. 26, 2018, 1:13 p.m. (2018-01-26 13:13:54 UTC) #16
On 2018/01/26 13:07:33, anton wrote:
> On 2018/01/26 13:05:47, diegocarloslima wrote:
> > On 2018/01/26 13:04:28, diegocarloslima wrote:
> > >
> >
>
https://codereview.adblockplus.org/29678590/diff/29680662/libadblockplus-andr...
> > > File
> > >
> >
>
libadblockplus-android/src/org/adblockplus/libadblockplus/android/SingleInstanceEngineProvider.java
> > > (right):
> > > 
> > >
> >
>
https://codereview.adblockplus.org/29678590/diff/29680662/libadblockplus-andr...
> > >
> >
>
libadblockplus-android/src/org/adblockplus/libadblockplus/android/SingleInstanceEngineProvider.java:60:
> > > new LinkedList<EngineDisposedListener>();
> > > Just one minor thing, the lists could be final
> > 
> > LGTM with a small remark regarding the listeners list declaration that could
> be
> > final.
> 
> created separate ticket for it: https://issues.adblockplus.org/ticket/6319

LGTM

Powered by Google App Engine
This is Rietveld