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

Issue 29570584: Issue 5847 - Add prefs.set message handler (Closed)

Created:
Oct. 9, 2017, 2:30 p.m. by kzar
Modified:
Oct. 9, 2017, 3:49 p.m.
Visibility:
Public.

Description

Issue 5847 - Add prefs.set message handler

Patch Set 1 #

Patch Set 2 : Honour forceValue for other preferences while at it #

Total comments: 2

Patch Set 3 : Instead add the new prefs.set message handler #

Total comments: 2

Patch Set 4 : Fixed typo #

Total comments: 3

Patch Set 5 : Don't toggle notifications when prefs.set value is omitted #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -0 lines) Patch
M messageResponder.js View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 11
kzar
Patch Set 1 Patch Set 2 : Honour forceValue for other preferences while at it
Oct. 9, 2017, 2:39 p.m. (2017-10-09 14:39:25 UTC) #1
Manish Jethani
https://codereview.adblockplus.org/29570584/diff/29570587/messageResponder.js File messageResponder.js (right): https://codereview.adblockplus.org/29570584/diff/29570587/messageResponder.js#newcode343 messageResponder.js:343: if (typeof message.forceValue == "undefined") I really think there ...
Oct. 9, 2017, 2:41 p.m. (2017-10-09 14:41:45 UTC) #2
kzar
https://codereview.adblockplus.org/29570584/diff/29570587/messageResponder.js File messageResponder.js (right): https://codereview.adblockplus.org/29570584/diff/29570587/messageResponder.js#newcode343 messageResponder.js:343: if (typeof message.forceValue == "undefined") On 2017/10/09 14:41:45, Manish ...
Oct. 9, 2017, 2:45 p.m. (2017-10-09 14:45:09 UTC) #3
Manish Jethani
On 2017/10/09 14:45:09, kzar wrote: > https://codereview.adblockplus.org/29570584/diff/29570587/messageResponder.js > File messageResponder.js (right): > > https://codereview.adblockplus.org/29570584/diff/29570587/messageResponder.js#newcode343 > ...
Oct. 9, 2017, 2:47 p.m. (2017-10-09 14:47:22 UTC) #4
kzar
Patch Set 3 : Instead add the new prefs.set message handler
Oct. 9, 2017, 2:55 p.m. (2017-10-09 14:55:07 UTC) #5
Manish Jethani
https://codereview.adblockplus.org/29570584/diff/29570606/messageResponder.js File messageResponder.js (right): https://codereview.adblockplus.org/29570584/diff/29570606/messageResponder.js#newcode343 messageResponder.js:343: return Prefs[message.key] = !Prefs[message.value]; Here you just mean to ...
Oct. 9, 2017, 3:02 p.m. (2017-10-09 15:02:55 UTC) #6
kzar
Patch Set 4 : Fixed typo https://codereview.adblockplus.org/29570584/diff/29570606/messageResponder.js File messageResponder.js (right): https://codereview.adblockplus.org/29570584/diff/29570606/messageResponder.js#newcode343 messageResponder.js:343: return Prefs[message.key] = ...
Oct. 9, 2017, 3:09 p.m. (2017-10-09 15:09:30 UTC) #7
Manish Jethani
https://codereview.adblockplus.org/29570584/diff/29570612/messageResponder.js File messageResponder.js (right): https://codereview.adblockplus.org/29570584/diff/29570612/messageResponder.js#newcode340 messageResponder.js:340: if (message.key == "notifications_ignoredcategories") Um ... what if message.value ...
Oct. 9, 2017, 3:16 p.m. (2017-10-09 15:16:52 UTC) #8
kzar
Patch Set 5 : Don't toggle notifications when prefs.set value is omitted https://codereview.adblockplus.org/29570584/diff/29570612/messageResponder.js File messageResponder.js ...
Oct. 9, 2017, 3:24 p.m. (2017-10-09 15:24:09 UTC) #9
Manish Jethani
LGTM https://codereview.adblockplus.org/29570584/diff/29570612/messageResponder.js File messageResponder.js (right): https://codereview.adblockplus.org/29570584/diff/29570612/messageResponder.js#newcode340 messageResponder.js:340: if (message.key == "notifications_ignoredcategories") On 2017/10/09 15:24:08, kzar ...
Oct. 9, 2017, 3:26 p.m. (2017-10-09 15:26:30 UTC) #10
Thomas Greiner
Oct. 9, 2017, 3:43 p.m. (2017-10-09 15:43:48 UTC) #11
LGTM

Powered by Google App Engine
This is Rietveld