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

Commit 8beb86c0 authored by Kristian Monsen's avatar Kristian Monsen
Browse files

Updated from comments to previous change after submitting

Previous change:
https://android-git.corp.google.com/g/#change,91471

This change was to fix bug 3270236

Change-Id: I7dc3179a55420d3383647e2bd50d4766dd21231b
parent b4242275
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;