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

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

Issue 29355392: Issue 4485 - Clear cache directory (Closed)
Patch Set: Adding null check for listFiles Created Sept. 30, 2016, 3:02 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 | « 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: src/org/adblockplus/sbrowser/contentblocker/engine/Subscriptions.java
===================================================================
--- a/src/org/adblockplus/sbrowser/contentblocker/engine/Subscriptions.java
+++ b/src/org/adblockplus/sbrowser/contentblocker/engine/Subscriptions.java
@@ -58,17 +58,16 @@ final class Subscriptions
public boolean wasUnitialized()
{
return this.wasUnitialized;
}
public File createAndWriteFile() throws IOException
{
- // TODO cache cleanups
for (;;)
{
final File file = new File(this.cacheFolder, String.format("tmp-%d.txt",
(int) (Math.random() * 1e8)));
if (!file.exists())
{
Log.d(TAG, "Writing filters to " + file);
this.writeFile(file);
« no previous file with comments | « 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