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

Delta Between Two Patch Sets: lib/subscriptionInit.js

Issue 29664623: Issue 6403 - Updated adblockplusui dependency (Closed)
Left Patch Set: Renamed pref and changed comment Created Jan. 25, 2018, 1:07 p.m.
Right Patch Set: Created Feb. 23, 2018, 11:51 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « lib/prefs.js ('k') | metadata.chrome » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
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 10 matching lines...) Expand all
21 21
22 const {Subscription, DownloadableSubscription, 22 const {Subscription, DownloadableSubscription,
23 SpecialSubscription} = require("subscriptionClasses"); 23 SpecialSubscription} = require("subscriptionClasses");
24 const {FilterStorage} = require("filterStorage"); 24 const {FilterStorage} = require("filterStorage");
25 const {FilterNotifier} = require("filterNotifier"); 25 const {FilterNotifier} = require("filterNotifier");
26 const info = require("info"); 26 const info = require("info");
27 const {Prefs} = require("prefs"); 27 const {Prefs} = require("prefs");
28 const {Synchronizer} = require("synchronizer"); 28 const {Synchronizer} = require("synchronizer");
29 const {Utils} = require("utils"); 29 const {Utils} = require("utils");
30 const {initNotifications} = require("notificationHelper"); 30 const {initNotifications} = require("notificationHelper");
31 const {updatesVersion} = require("ui"); 31 const {updatesVersion} = require("../adblockplusui/lib/prefs");
32 32
33 let firstRun; 33 let firstRun;
34 let subscriptionsCallback = null; 34 let subscriptionsCallback = null;
35 35
36 /** 36 /**
37 * If there aren't any filters, the default subscriptions are added. 37 * If there aren't any filters, the default subscriptions are added.
38 * However, if patterns.ini already did exist and/or any preference 38 * However, if patterns.ini already did exist and/or any preference
39 * is set to a non-default value, this indicates that this isn't the 39 * is set to a non-default value, this indicates that this isn't the
40 * first run, but something went wrong. 40 * first run, but something went wrong.
41 * 41 *
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 * Sets a callback that is called with an array of subscriptions to be added 252 * Sets a callback that is called with an array of subscriptions to be added
253 * during initialization. The callback must return an array of subscriptions 253 * during initialization. The callback must return an array of subscriptions
254 * that will effectively be added. 254 * that will effectively be added.
255 * 255 *
256 * @param {function} callback 256 * @param {function} callback
257 */ 257 */
258 exports.setSubscriptionsCallback = callback => 258 exports.setSubscriptionsCallback = callback =>
259 { 259 {
260 subscriptionsCallback = callback; 260 subscriptionsCallback = callback;
261 }; 261 };
LEFTRIGHT

Powered by Google App Engine
This is Rietveld