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

Unified Diff: lib/firefoxDataCleanup.js

Issue 29877564: Issue 6933 - Update adblockpluscore dependency to hg:dcda4859fcbd (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome/
Patch Set: Modify callback for subscription.removed (#6908) Created Sept. 10, 2018, 6:04 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/filterComposer.js ('k') | lib/icon.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/firefoxDataCleanup.js
===================================================================
--- a/lib/firefoxDataCleanup.js
+++ b/lib/firefoxDataCleanup.js
@@ -13,23 +13,23 @@
*
* You should have received a copy of the GNU General Public License
* along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
*/
"use strict";
const {Filter, ActiveFilter} = require("../adblockpluscore/lib/filterClasses");
-const {FilterNotifier} = require("../adblockpluscore/lib/filterNotifier");
+const {filterNotifier} = require("../adblockpluscore/lib/filterNotifier");
const {FilterStorage} = require("../adblockpluscore/lib/filterStorage");
const {Prefs} = require("./prefs");
const {SpecialSubscription} =
require("../adblockpluscore/lib/subscriptionClasses");
-Promise.all([FilterNotifier.once("load"), Prefs.untilLoaded]).then(() =>
+Promise.all([filterNotifier.once("load"), Prefs.untilLoaded]).then(() =>
{
if (Prefs.data_cleanup_done)
return;
if (FilterStorage.firstRun)
{
Prefs.data_cleanup_done = true;
return;
@@ -43,17 +43,17 @@
if (!(filter instanceof ActiveFilter))
continue;
if (filter.disabled)
{
// Enable or replace disabled filters
filter.disabled = false;
- for (let subscription of filter.subscriptions)
+ for (let subscription of filter.subscriptions())
{
if (subscription instanceof SpecialSubscription)
{
while (true)
{
let position = subscription.filters.indexOf(filter);
if (position < 0)
break;
« no previous file with comments | « lib/filterComposer.js ('k') | lib/icon.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld