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

Issue 29501607: Issue 5459 - Add support to show a notification based on the number of ads blocked (Closed)

Created:
July 31, 2017, 3:05 p.m. by wspee
Modified:
Aug. 25, 2017, 9:20 a.m.
Reviewers:
Wladimir Palant
CC:
Sebastian Noack
Visibility:
Public.

Description

Issue 5459 - Add support to show a notification based on the number of ads blocked

Patch Set 1 #

Total comments: 1

Patch Set 2 : Update commit message #

Total comments: 4

Patch Set 3 : Made blockedTotal and locales part of targets #

Total comments: 13

Patch Set 4 : Addressed review comments #

Total comments: 6

Patch Set 5 : Addressed review comments #

Patch Set 6 : Show notification for blockedTotal* only if Prefs.show_statsinpopup #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -36 lines) Patch
M lib/notification.js View 1 2 3 4 5 3 chunks +30 lines, -15 lines 0 comments Download
M test/notification.js View 1 2 3 4 5 3 chunks +56 lines, -20 lines 0 comments Download
M test/stub-modules/prefs.js View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M test/stub-modules/utils.js View 1 2 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 8
wspee
https://codereview.adblockplus.org/29501607/diff/29501608/lib/notification.js File lib/notification.js (right): https://codereview.adblockplus.org/29501607/diff/29501608/lib/notification.js#newcode308 lib/notification.js:308: (typeof Prefs.blocked_total != 'number' || NOTE: Prefs.blocked_total only exists ...
July 31, 2017, 3:16 p.m. (2017-07-31 15:16:22 UTC) #1
Wladimir Palant
https://codereview.adblockplus.org/29501607/diff/29501613/lib/notification.js File lib/notification.js (right): https://codereview.adblockplus.org/29501607/diff/29501613/lib/notification.js#newcode310 lib/notification.js:310: continue Nit: please run ESLint. There should be a ...
Aug. 15, 2017, 10:31 a.m. (2017-08-15 10:31:21 UTC) #2
wspee
https://codereview.adblockplus.org/29501607/diff/29501613/lib/notification.js File lib/notification.js (right): https://codereview.adblockplus.org/29501607/diff/29501613/lib/notification.js#newcode310 lib/notification.js:310: continue On 2017/08/15 10:31:21, Wladimir Palant wrote: > Nit: ...
Aug. 21, 2017, 3:18 p.m. (2017-08-21 15:18:22 UTC) #3
Wladimir Palant
https://codereview.adblockplus.org/29501607/diff/29522625/lib/notification.js File lib/notification.js (right): https://codereview.adblockplus.org/29501607/diff/29522625/lib/notification.js#newcode280 lib/notification.js:280: let checks = new Map([ This shouldn't be set ...
Aug. 22, 2017, 7:54 a.m. (2017-08-22 07:54:59 UTC) #4
wspee
https://codereview.adblockplus.org/29501607/diff/29522625/lib/notification.js File lib/notification.js (right): https://codereview.adblockplus.org/29501607/diff/29522625/lib/notification.js#newcode280 lib/notification.js:280: let checks = new Map([ On 2017/08/22 07:54:58, Wladimir ...
Aug. 23, 2017, 10:12 a.m. (2017-08-23 10:12:20 UTC) #5
Wladimir Palant
https://codereview.adblockplus.org/29501607/diff/29524557/lib/notification.js File lib/notification.js (right): https://codereview.adblockplus.org/29501607/diff/29524557/lib/notification.js#newcode220 lib/notification.js:220: v => Services.vc.compare(addonVersion, v) >= 0, Here and below: ...
Aug. 23, 2017, 11 a.m. (2017-08-23 11:00:11 UTC) #6
wspee
Also updated patch to no longer show notifications for blockedTotal* if Prefs.show_statsinpopup is false, see: ...
Aug. 24, 2017, 4:39 p.m. (2017-08-24 16:39:23 UTC) #7
Wladimir Palant
Aug. 25, 2017, 8:21 a.m. (2017-08-25 08:21:30 UTC) #8
LGTM

Powered by Google App Engine
This is Rietveld