Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7d637712 authored by Kristian Monsen's avatar Kristian Monsen Committed by Android (Google) Code Review
Browse files

Merge "Updated from comments to previous change after submitting"

parents 45708bf2 8beb86c0
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -198,8 +198,6 @@ public final class CacheManager {
            mBaseDir = new File(context.getCacheDir(), "webviewCacheChromiumStaging");
            if (!mBaseDir.exists()) {
                mBaseDir.mkdirs();
            } else {
                // TODO: Should we clear out old files?
            }
            return;
        }
@@ -605,11 +603,12 @@ public final class CacheManager {
     * @return Whether the removal succeeded.
     */
    static boolean removeAllCacheFiles() {
        assert !JniUtil.useChromiumHttpStack();

        // Note, this is called before init() when the database is
        // created or upgraded.
        if (mBaseDir == null) {
            // This method should not be called before init() when using the
            // chrome http stack
            assert !JniUtil.useChromiumHttpStack();
            // Init() has not been called yet, so just flag that
            // we need to clear the cache when init() is called.
            mClearCacheOnInit = true;