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

Issue 29419629: Issue 5164 - Remove NotificationPtr (Closed)

Created:
April 21, 2017, 2:08 p.m. by hub
Modified:
April 25, 2017, noon
Reviewers:
sergei
Base URL:
https://hg.adblockplus.org/libadblockplus/
Visibility:
Public.

Description

Issue 5164 - Remove NotificationPtr

Patch Set 1 #

Total comments: 8

Patch Set 2 : Updated following review feedback #

Total comments: 6

Patch Set 3 : Fix test, reconsolidate lambdas as per review #

Total comments: 4

Patch Set 4 : Added move ctor. Test fixes. #

Patch Set 5 : Added copy ctor #

Total comments: 4

Patch Set 6 : Added arg name to declaration + doc comments #

Patch Set 7 : Added move assignment operator. #

Total comments: 5

Patch Set 8 : Call the inherited assignment operator properly #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -32 lines) Patch
M include/AdblockPlus/FilterEngine.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M include/AdblockPlus/Notification.h View 1 2 3 4 5 6 2 chunks +20 lines, -1 line 0 comments Download
M src/FilterEngine.cpp View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M src/Notification.cpp View 1 2 3 4 5 6 7 1 chunk +22 lines, -0 lines 0 comments Download
M test/Notification.cpp View 1 2 3 3 chunks +19 lines, -29 lines 0 comments Download

Messages

Total messages: 12
hub
April 21, 2017, 2:08 p.m. (2017-04-21 14:08:38 UTC) #1
sergei
https://codereview.adblockplus.org/29419629/diff/29419630/include/AdblockPlus/Notification.h File include/AdblockPlus/Notification.h (right): https://codereview.adblockplus.org/29419629/diff/29419630/include/AdblockPlus/Notification.h#newcode60 include/AdblockPlus/Notification.h:60: explicit Notification(JsValue&& jsValue); I don't think it's a good ...
April 21, 2017, 3:30 p.m. (2017-04-21 15:30:33 UTC) #2
hub
updated patch https://codereview.adblockplus.org/29419629/diff/29419630/include/AdblockPlus/Notification.h File include/AdblockPlus/Notification.h (right): https://codereview.adblockplus.org/29419629/diff/29419630/include/AdblockPlus/Notification.h#newcode60 include/AdblockPlus/Notification.h:60: explicit Notification(JsValue&& jsValue); On 2017/04/21 15:30:33, sergei ...
April 21, 2017, 4:29 p.m. (2017-04-21 16:29:32 UTC) #3
sergei
https://codereview.adblockplus.org/29419629/diff/29419642/test/Notification.cpp File test/Notification.cpp (right): https://codereview.adblockplus.org/29419629/diff/29419642/test/Notification.cpp#newcode63 test/Notification.cpp:63: static void NotificationAvailableCallback(const Notification& src, std::unique_ptr<Notification>& dst) Could you ...
April 21, 2017, 5:57 p.m. (2017-04-21 17:57:38 UTC) #4
hub
updated patch https://codereview.adblockplus.org/29419629/diff/29419642/test/Notification.cpp File test/Notification.cpp (right): https://codereview.adblockplus.org/29419629/diff/29419642/test/Notification.cpp#newcode63 test/Notification.cpp:63: static void NotificationAvailableCallback(const Notification& src, std::unique_ptr<Notification>& dst) ...
April 21, 2017, 6:37 p.m. (2017-04-21 18:37:28 UTC) #5
sergei
could you please also add move-ctr? https://codereview.adblockplus.org/29419629/diff/29419647/test/Notification.cpp File test/Notification.cpp (left): https://codereview.adblockplus.org/29419629/diff/29419647/test/Notification.cpp#oldcode191 test/Notification.cpp:191: ASSERT_TRUE(notification); this assert ...
April 24, 2017, 8:20 a.m. (2017-04-24 08:20:28 UTC) #6
hub
updated patch https://codereview.adblockplus.org/29419629/diff/29419647/test/Notification.cpp File test/Notification.cpp (left): https://codereview.adblockplus.org/29419629/diff/29419647/test/Notification.cpp#oldcode191 test/Notification.cpp:191: ASSERT_TRUE(notification); On 2017/04/24 08:20:28, sergei wrote: > ...
April 24, 2017, 1:55 p.m. (2017-04-24 13:55:00 UTC) #7
sergei
merely a couple of tiny things https://codereview.adblockplus.org/29419629/diff/29420602/include/AdblockPlus/Notification.h File include/AdblockPlus/Notification.h (right): https://codereview.adblockplus.org/29419629/diff/29420602/include/AdblockPlus/Notification.h#newcode62 include/AdblockPlus/Notification.h:62: Notification(const Notification&); do ...
April 24, 2017, 6:17 p.m. (2017-04-24 18:17:53 UTC) #8
hub
updated patch https://codereview.adblockplus.org/29419629/diff/29420602/include/AdblockPlus/Notification.h File include/AdblockPlus/Notification.h (right): https://codereview.adblockplus.org/29419629/diff/29420602/include/AdblockPlus/Notification.h#newcode62 include/AdblockPlus/Notification.h:62: Notification(const Notification&); On 2017/04/24 18:17:53, sergei wrote: ...
April 24, 2017, 7:16 p.m. (2017-04-24 19:16:23 UTC) #9
sergei
https://codereview.adblockplus.org/29419629/diff/29420632/include/AdblockPlus/FilterEngine.h File include/AdblockPlus/FilterEngine.h (right): https://codereview.adblockplus.org/29419629/diff/29420632/include/AdblockPlus/FilterEngine.h#newcode113 include/AdblockPlus/FilterEngine.h:113: Subscription& operator=(Subscription&& src); This change seems unrelated to this ...
April 24, 2017, 7:28 p.m. (2017-04-24 19:28:15 UTC) #10
hub
updated patch https://codereview.adblockplus.org/29419629/diff/29420632/include/AdblockPlus/FilterEngine.h File include/AdblockPlus/FilterEngine.h (right): https://codereview.adblockplus.org/29419629/diff/29420632/include/AdblockPlus/FilterEngine.h#newcode113 include/AdblockPlus/FilterEngine.h:113: Subscription& operator=(Subscription&& src); On 2017/04/24 19:28:15, sergei ...
April 24, 2017, 8:17 p.m. (2017-04-24 20:17:05 UTC) #11
sergei
April 25, 2017, 7:37 a.m. (2017-04-25 07:37:16 UTC) #12
LGTM

https://codereview.adblockplus.org/29419629/diff/29420632/include/AdblockPlus...
File include/AdblockPlus/FilterEngine.h (right):

https://codereview.adblockplus.org/29419629/diff/29420632/include/AdblockPlus...
include/AdblockPlus/FilterEngine.h:113: Subscription& operator=(Subscription&&
src);
On 2017/04/24 20:17:04, hub wrote:
> On 2017/04/24 19:28:15, sergei wrote:
> > This change seems unrelated to this codereview, the codereview is about
> > Notification, for Subscription there is another codereview.
> 
> I thought for a second I had mixed up code reviews and patches. This only
appear
> in the interdiff because this patch is based on top of the other (the one for
> the subscription). Rebasing has happened.

Acknowledged.

Powered by Google App Engine
This is Rietveld