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

Side by Side Diff: lib/prefs.js

Issue 29321084: Issue 2195 - Added notification opt-out (Platform) (Closed)
Patch Set: Created June 25, 2015, 4:44 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « _locales/en_US/messages.json ('k') | notification.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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-2015 Eyeo GmbH 3 * Copyright (C) 2006-2015 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 /** 136 /**
137 * Whether to suppress the first run page. This preference isn't 137 * Whether to suppress the first run page. This preference isn't
138 * set by the extension but can be pre-configured externally. 138 * set by the extension but can be pre-configured externally.
139 * 139 *
140 * @see https://adblockplus.org/development-builds/suppressing-the-first-run-pag e-on-chrome 140 * @see https://adblockplus.org/development-builds/suppressing-the-first-run-pag e-on-chrome
141 * @type {boolean} 141 * @type {boolean}
142 */ 142 */
143 defaults.suppress_first_run_page = false; 143 defaults.suppress_first_run_page = false;
144 144
145 /** 145 /**
146 * Whether notification opt-out UI should be shown.
147 * @type {boolean}
148 */
149 defaults.notifications_showui = false;
150
151 /**
146 * Notification categories to be ignored. 152 * Notification categories to be ignored.
147 * 153 *
148 * @type {string[]} 154 * @type {string[]}
149 */ 155 */
150 defaults.notifications_ignoredcategories = []; 156 defaults.notifications_ignoredcategories = [];
151 157
152 /** 158 /**
153 * @namespace 159 * @namespace
154 * @static 160 * @static
155 */ 161 */
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 }); 315 });
310 } 316 }
311 else 317 else
312 { 318 {
313 managedLoaded = true; 319 managedLoaded = true;
314 checkLoaded(); 320 checkLoaded();
315 } 321 }
316 } 322 }
317 323
318 init(); 324 init();
OLDNEW
« no previous file with comments | « _locales/en_US/messages.json ('k') | notification.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld