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

Issue 29422558: Issue 5167 - Update to use libadblockplus revision dca8df9af1a7 (Closed)

Created:
April 26, 2017, 6:48 a.m. by anton
Modified:
May 10, 2017, 11:06 a.m.
Reviewers:
sergei, diegocarloslima
CC:
Felix Dahlke, René Jeschke
Visibility:
Public.

Description

Issue 5167 - Update to use libadblockplus revision dca8df9af1a7 #depends on https://codereview.adblockplus.org/29429555/

Patch Set 1 #

Patch Set 2 : removed unneeded intermediate variable #

Total comments: 44

Patch Set 3 : suggestions by Serge #

Total comments: 2

Patch Set 4 : using move ctors, reverted some unrelated changes #

Patch Set 5 : updated dependencies (..-binaries) #

Patch Set 6 : optimizations by serge, using newer libadblockplus-binaries #

Total comments: 2

Patch Set 7 : updated dependencies (..-binaries) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -127 lines) Patch
M dependencies View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M libadblockplus-android/jni/JniCallbacks.h View 1 2 3 4 5 3 chunks +3 lines, -3 lines 0 comments Download
M libadblockplus-android/jni/JniEventCallback.cpp View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M libadblockplus-android/jni/JniFilter.cpp View 1 chunk +1 line, -1 line 0 comments Download
M libadblockplus-android/jni/JniFilterChangeCallback.cpp View 1 2 3 4 5 2 chunks +2 lines, -3 lines 0 comments Download
M libadblockplus-android/jni/JniFilterEngine.cpp View 1 2 3 4 5 13 chunks +29 lines, -34 lines 0 comments Download
M libadblockplus-android/jni/JniJsEngine.cpp View 1 2 3 4 5 8 chunks +11 lines, -12 lines 0 comments Download
M libadblockplus-android/jni/JniJsValue.h View 1 2 3 4 5 1 chunk +4 lines, -4 lines 0 comments Download
M libadblockplus-android/jni/JniJsValue.cpp View 1 2 3 4 5 14 chunks +25 lines, -33 lines 0 comments Download
M libadblockplus-android/jni/JniNotification.cpp View 1 chunk +1 line, -1 line 0 comments Download
M libadblockplus-android/jni/JniShowNotificationCallback.cpp View 1 2 3 4 5 2 chunks +2 lines, -4 lines 0 comments Download
M libadblockplus-android/jni/JniSubscription.cpp View 1 chunk +1 line, -1 line 0 comments Download
M libadblockplus-android/jni/Utils.h View 1 2 3 4 5 1 chunk +3 lines, -5 lines 0 comments Download
M libadblockplus-android/jni/Utils.cpp View 1 2 3 4 5 1 chunk +11 lines, -23 lines 0 comments Download

Messages

Total messages: 11
sergei
I have quickly reviewed the code and paid attention mainly to some more or less ...
April 26, 2017, 9:21 a.m. (2017-04-26 09:21:00 UTC) #1
anton
uploaded patch set #3 https://codereview.adblockplus.org/29422558/diff/29422573/libadblockplus-android/jni/JniEventCallback.cpp File libadblockplus-android/jni/JniEventCallback.cpp (right): https://codereview.adblockplus.org/29422558/diff/29422573/libadblockplus-android/jni/JniEventCallback.cpp#newcode50 libadblockplus-android/jni/JniEventCallback.cpp:50: jobject jsList = JniJsValueListToArrayList(*env, params); ...
April 26, 2017, 10:23 a.m. (2017-04-26 10:23:00 UTC) #2
anton
April 26, 2017, 10:25 a.m. (2017-04-26 10:25:42 UTC) #3
sergei
https://codereview.adblockplus.org/29422558/diff/29422573/libadblockplus-android/jni/JniJsEngine.cpp File libadblockplus-android/jni/JniJsEngine.cpp (right): https://codereview.adblockplus.org/29422558/diff/29422573/libadblockplus-android/jni/JniJsEngine.cpp#newcode97 libadblockplus-android/jni/JniJsEngine.cpp:97: static void JNICALL JniTriggerEvent(JNIEnv* env, jclass clazz, jlong ptr, ...
April 26, 2017, 2:12 p.m. (2017-04-26 14:12:57 UTC) #4
anton
+ uploaded new patch set https://codereview.adblockplus.org/29422558/diff/29422573/libadblockplus-android/jni/JniJsEngine.cpp File libadblockplus-android/jni/JniJsEngine.cpp (right): https://codereview.adblockplus.org/29422558/diff/29422573/libadblockplus-android/jni/JniJsEngine.cpp#newcode97 libadblockplus-android/jni/JniJsEngine.cpp:97: static void JNICALL JniTriggerEvent(JNIEnv* ...
April 27, 2017, 6:21 a.m. (2017-04-27 06:21:01 UTC) #5
sergei
LGTM :)
May 5, 2017, 1:05 p.m. (2017-05-05 13:05:06 UTC) #6
sergei
https://codereview.adblockplus.org/29422558/diff/29430560/libadblockplus-android/jni/JniFilterEngine.cpp File libadblockplus-android/jni/JniFilterEngine.cpp (right): https://codereview.adblockplus.org/29422558/diff/29430560/libadblockplus-android/jni/JniFilterEngine.cpp#newcode328 libadblockplus-android/jni/JniFilterEngine.cpp:328: return filterPtr.get() ? NewJniFilter(env, std::move(*filterPtr)) : 0; Actually here, ...
May 5, 2017, 1:05 p.m. (2017-05-05 13:05:14 UTC) #7
sergei
https://codereview.adblockplus.org/29422558/diff/29430560/dependencies File dependencies (right): https://codereview.adblockplus.org/29422558/diff/29430560/dependencies#newcode4 dependencies:4: libadblockplus-android/jni/libadblockplus-binaries = libadblockplus-binaries hg:a40587693658 git:a528bf6 BTW, I think it ...
May 8, 2017, 8:15 a.m. (2017-05-08 08:15:15 UTC) #8
diegocarloslima
On 2017/05/08 08:15:15, sergei wrote: > https://codereview.adblockplus.org/29422558/diff/29430560/dependencies > File dependencies (right): > > https://codereview.adblockplus.org/29422558/diff/29430560/dependencies#newcode4 > ...
May 8, 2017, 9:54 p.m. (2017-05-08 21:54:40 UTC) #9
anton
On 2017/05/08 08:15:15, sergei wrote: > https://codereview.adblockplus.org/29422558/diff/29430560/dependencies > File dependencies (right): > > https://codereview.adblockplus.org/29422558/diff/29430560/dependencies#newcode4 > ...
May 10, 2017, 6:56 a.m. (2017-05-10 06:56:31 UTC) #10
sergei
May 10, 2017, 11:06 a.m. (2017-05-10 11:06:49 UTC) #11
Message was sent while issue was closed.
On 2017/05/10 06:56:31, anton wrote:
> On 2017/05/08 08:15:15, sergei wrote:
> > https://codereview.adblockplus.org/29422558/diff/29430560/dependencies
> > File dependencies (right):
> > 
> >
>
https://codereview.adblockplus.org/29422558/diff/29430560/dependencies#newcode4
> > dependencies:4: libadblockplus-android/jni/libadblockplus-binaries =
> > libadblockplus-binaries hg:a40587693658 git:a528bf6
> > BTW, I think it makes a little sense to use some short version of a commit
ID
> > instead of a full version. It's maybe fine so far but I would recommend to
use
> > the full one.
> 
> Well, it's processed by our scripts and it was meant to be used by human,  so
i
> believe it does not make sense.
> BTW i've uploaded new patch set

Our script finally feeds it to git which can use even 3-4 first chars but it
will very soon result in a conflict, the probability of conflict for first 7
chars is also pretty high BTW. What concerns designed for human, for me it's
easier to verify first 3 characters and last 3 characters instead of first 7-10
characters. I think it's also easier to work with full length commit ID because
one does not have to edit it in addition, just double click (what automatically
fully selects it) and copy-paste and every one can be sure there are no weird
things.

Powered by Google App Engine
This is Rietveld