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

Unified Diff: adblockplussbrowser/src/org/adblockplus/sbrowser/contentblocker/engine/Subscriptions.java

Issue 29524668: Issue 3916 - Supporting Adding filter lists via URL (Closed)
Patch Set: Use TAG constant for log, fix in MoreBlockingPreferenceCategory Created Oct. 10, 2017, 1:57 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 | « adblockplussbrowser/src/org/adblockplus/sbrowser/contentblocker/engine/Engine.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: adblockplussbrowser/src/org/adblockplus/sbrowser/contentblocker/engine/Subscriptions.java
===================================================================
--- a/adblockplussbrowser/src/org/adblockplus/sbrowser/contentblocker/engine/Subscriptions.java
+++ b/adblockplussbrowser/src/org/adblockplus/sbrowser/contentblocker/engine/Subscriptions.java
@@ -215,16 +215,21 @@ final class Subscriptions
if (!this.subscriptions.containsKey(id))
{
this.subscriptions.put(id, sub);
return sub;
}
return this.subscriptions.get(id);
}
+ public boolean remove(final String id)
+ {
+ return this.subscriptions.remove(id) != null;
+ }
+
public static Subscriptions initialize(final Engine engine, final File appFolder,
final File cacheFolder)
{
final Subscriptions subs = new Subscriptions(engine, appFolder, cacheFolder);
subs.subscriptionFolder.mkdirs();
subs.cacheFolder.mkdirs();
« no previous file with comments | « adblockplussbrowser/src/org/adblockplus/sbrowser/contentblocker/engine/Engine.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld