diff options
author | Kristian Monsen <kristianm@google.com> | 2011-02-16 10:59:56 +0000 |
---|---|---|
committer | Kristian Monsen <kristianm@google.com> | 2011-02-16 11:32:56 +0000 |
commit | 8beb86c0430a7125bb1617172f34187308b178c0 (patch) | |
tree | e3065714aa796853d8c711ef93946775e052592a /core | |
parent | b4242275095da96fe37176c13ee44ac3dd83dc3e (diff) | |
download | frameworks_base-8beb86c0430a7125bb1617172f34187308b178c0.zip frameworks_base-8beb86c0430a7125bb1617172f34187308b178c0.tar.gz frameworks_base-8beb86c0430a7125bb1617172f34187308b178c0.tar.bz2 |
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
Diffstat (limited to 'core')
-rw-r--r-- | core/java/android/webkit/CacheManager.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/core/java/android/webkit/CacheManager.java b/core/java/android/webkit/CacheManager.java index 04062fe..3ce0730 100644 --- a/core/java/android/webkit/CacheManager.java +++ b/core/java/android/webkit/CacheManager.java @@ -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; |