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

Issue 11175032: Actually saving and loading the prefs (Closed)

Created:
July 22, 2013, 12:43 a.m. by Oleksandr
Modified:
July 22, 2013, 8:24 a.m.
Reviewers:
Wladimir Palant
Visibility:
Public.

Description

Actually saving and loading the prefs

Patch Set 1 #

Total comments: 1

Patch Set 2 : statusbarasked added to default prefs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -1 line) Patch
M lib/prefs.js View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 4
Oleksandr
I think either there was a bug in SetPref/GetPref or I've missed something - in ...
July 22, 2013, 12:48 a.m. (2013-07-22 00:48:30 UTC) #1
Wladimir Palant
You've missed something. As I mentioned before, only preferences that have default values will be ...
July 22, 2013, 6:45 a.m. (2013-07-22 06:45:47 UTC) #2
Oleksandr
I think we've decided that we don't need an "isFirstRun" pref. Don't think it was ...
July 22, 2013, 7:38 a.m. (2013-07-22 07:38:40 UTC) #3
Oleksandr
July 22, 2013, 7:49 a.m. (2013-07-22 07:49:46 UTC) #4
If we do need statusbarasked, then I guess it would be like in patch set 2.
However, I have to say I don't fully follow the requirement to have the property
defined first. Seems to be limiting flexibility.

On 2013/07/22 07:38:40, Oleksandr wrote:
> I think we've decided that we don't need an "isFirstRun" pref. Don't think it
> was about "statusbarasked". Or if it was - that is not how I understood it.
Can
> you please reason (again?) how can we live without this? We definitely don't
> want to ask a user to enable the status bar after each reboot... 
> 
> On 2013/07/22 06:45:47, Wladimir Palant wrote:
> > You've missed something. As I mentioned before, only preferences that have
> > default values will be saved - this is correct and intentional. And we've
> > already established that you don't really need the statusbarasked pref...
> > 
> > http://codereview.adblockplus.org/11175032/diff/1/lib/prefs.js
> > File lib/prefs.js (right):
> > 
> > http://codereview.adblockplus.org/11175032/diff/1/lib/prefs.js#newcode125
> > lib/prefs.js:125: defineProperty(key);
> > This is where a property is defined for each pref. You should *not* write to
> > values directly.

Powered by Google App Engine
This is Rietveld