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

Side by Side Diff: lib/prefs.js

Issue 29526555: Issue 5554 - [webextensions] Adjust data to account for UI limitations (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome
Patch Set: Created Aug. 24, 2017, 9:02 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-present eyeo GmbH 3 * Copyright (C) 2006-present eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 /** 44 /**
45 * Only for compatibility with core code. Please do not change! 45 * Only for compatibility with core code. Please do not change!
46 * 46 *
47 * @type {string} 47 * @type {string}
48 */ 48 */
49 defaults.data_directory = ""; 49 defaults.data_directory = "";
50 /** 50 /**
51 * @see https://adblockplus.org/en/preferences#patternsbackups 51 * @see https://adblockplus.org/en/preferences#patternsbackups
52 * @type {number} 52 * @type {number}
53 */ 53 */
54 defaults.patternsbackups = 5; 54 defaults.patternsbackups = 0;
Wladimir Palant 2017/08/24 09:08:09 I don't know why this feature was enabled initiall
55 /** 55 /**
56 * @see https://adblockplus.org/en/preferences#patternsbackupinterval 56 * @see https://adblockplus.org/en/preferences#patternsbackupinterval
57 * @type {number} 57 * @type {number}
58 */ 58 */
59 defaults.patternsbackupinterval = 24; 59 defaults.patternsbackupinterval = 24;
60 /** 60 /**
61 * Only for compatibility with core code. Please do not change! 61 * Only for compatibility with core code. Please do not change!
62 * 62 *
63 * @type {boolean} 63 * @type {boolean}
64 */ 64 */
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 */ 141 */
142 defaults.hidePlaceholders = true; 142 defaults.hidePlaceholders = true;
143 143
144 /** 144 /**
145 * Whether notification opt-out UI should be shown. 145 * Whether notification opt-out UI should be shown.
146 * @type {boolean} 146 * @type {boolean}
147 */ 147 */
148 defaults.notifications_showui = false; 148 defaults.notifications_showui = false;
149 149
150 /** 150 /**
151 * Determines whether data has been cleaned up after upgrading from the legacy
152 * extension on Firefox.
153 *
154 * @type {boolean}
155 */
156 defaults.data_cleanup_done = false;
Sebastian Noack 2017/08/24 09:42:05 This way the data migration will also be performed
Wladimir Palant 2017/08/24 09:57:43 On a fresh install this will be a fast operation.
157
158 /**
151 * Notification categories to be ignored. 159 * Notification categories to be ignored.
152 * 160 *
153 * @type {string[]} 161 * @type {string[]}
154 */ 162 */
155 defaults.notifications_ignoredcategories = []; 163 defaults.notifications_ignoredcategories = [];
156 164
157 /** 165 /**
158 * Whether to show the developer tools panel. 166 * Whether to show the developer tools panel.
159 * 167 *
160 * @type {boolean} 168 * @type {boolean}
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 eventEmitter.emit(pref); 322 eventEmitter.emit(pref);
315 } 323 }
316 } 324 }
317 }); 325 });
318 } 326 }
319 327
320 Prefs.untilLoaded = Promise.all([localLoaded, managedLoaded]).then(onLoaded); 328 Prefs.untilLoaded = Promise.all([localLoaded, managedLoaded]).then(onLoaded);
321 } 329 }
322 330
323 init(); 331 init();
OLDNEW

Powered by Google App Engine
This is Rietveld