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

Unified Diff: lib/firefoxDataCleanup.js

Issue 29570614: Issue 5028 - Use browser namespace (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome/
Patch Set: Use callback-based API for storage Created Oct. 9, 2017, 4:01 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/filterValidation.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
@@ -72,13 +72,13 @@
// Reset hit statistics on any filters having them
FilterStorage.resetHitCounts(haveHitCounts);
// Remove any existing automatic backups
let backups = [];
for (let i = 1; i < 100; i++)
backups.push(`file:patterns-backup${i}.ini`);
- browser.storage.local.remove(backups).then(() =>
+ browser.storage.local.remove(backups, () =>
{
Prefs.data_cleanup_done = true;
});
});
« no previous file with comments | « lib/filterValidation.js ('k') | lib/icon.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld