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

Unified Diff: lib/indexedDBBackup.js

Issue 29877564: Issue 6933 - Update adblockpluscore dependency to hg:dcda4859fcbd (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome/
Patch Set: Rebase on next and update adblockplusui dependency Created Sept. 11, 2018, 1:40 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
Index: lib/indexedDBBackup.js
===================================================================
--- a/lib/indexedDBBackup.js
+++ b/lib/indexedDBBackup.js
@@ -12,17 +12,17 @@
* GNU General Public License for more details.
*
* 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 {FilterNotifier} = require("../adblockpluscore/lib/filterNotifier");
+const {filterNotifier} = require("../adblockpluscore/lib/filterNotifier");
const {FilterStorage} = require("../adblockpluscore/lib/filterStorage");
const {DownloadableSubscription, SpecialSubscription} =
require("../adblockpluscore/lib/subscriptionClasses");
const BACKUP_NAME = "file:indexedDB-backup";
let backupDelay;
let pendingBackup = false;
@@ -96,24 +96,24 @@
let entry = items[BACKUP_NAME];
if (entry)
return entry;
throw {type: "NoSuchFile"};
});
}
-FilterNotifier.on("load", scheduleBackup);
-FilterNotifier.on("subscription.updated", scheduleBackup);
-FilterNotifier.on("subscription.added", scheduleBackup);
-FilterNotifier.on("subscription.removed", scheduleBackup);
-FilterNotifier.on("subscription.disabled", scheduleBackup);
-FilterNotifier.on("filter.added", scheduleBackup);
-FilterNotifier.on("filter.removed", scheduleBackup);
-FilterNotifier.on("filter.moved", scheduleBackup);
-FilterNotifier.on("filter.disabled", scheduleBackup);
+filterNotifier.on("load", scheduleBackup);
+filterNotifier.on("subscription.updated", scheduleBackup);
+filterNotifier.on("subscription.added", scheduleBackup);
+filterNotifier.on("subscription.removed", scheduleBackup);
+filterNotifier.on("subscription.disabled", scheduleBackup);
+filterNotifier.on("filter.added", scheduleBackup);
+filterNotifier.on("filter.removed", scheduleBackup);
+filterNotifier.on("filter.moved", scheduleBackup);
+filterNotifier.on("filter.disabled", scheduleBackup);
exports.IndexedDBBackup =
{
getBackupData,
// Non-public API, just for tests.
setBackupInterval
};

Powered by Google App Engine
This is Rietveld