Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(777)

Issue 1421863002: [CacheStorage] Garbage collect unreferenced caches (Closed)

Created:
5 years, 1 month ago by jkarlin
Modified:
5 years, 1 month ago
Reviewers:
jsbell
CC:
chromium-reviews, darin-cc_chromium.org, jam, jkarlin+watch_chromium.org, nhiroki
Base URL:
https://chromium.googlesource.com/chromium/src.git@random_cache_name
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[CacheStorage] Garbage collect unreferenced caches If a cache fails to be deleted for some reason on CacheStorage.delete, then its directory may stick around even though it can no longer be referenced. This CL adds a garbage collection step on CacheStorage initialization that deletes any unreferenced caches. BUG=547110 Committed: https://crrev.com/1b8c48882a6b8e754bd10aa1e4af7f2393c96d60 Cr-Commit-Position: refs/heads/master@{#356065}

Patch Set 1 #

Patch Set 2 : Nits #

Total comments: 4

Patch Set 3 : Rebase #

Patch Set 4 : Address comments from PS2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -4 lines) Patch
M content/browser/cache_storage/cache_storage.cc View 1 2 3 4 chunks +25 lines, -2 lines 0 comments Download
M content/browser/cache_storage/cache_storage_manager.h View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M content/browser/cache_storage/cache_storage_manager_unittest.cc View 1 2 1 chunk +25 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 12 (5 generated)
jkarlin
jsbell: PTAL, many thanks!
5 years, 1 month ago (2015-10-23 17:21:35 UTC) #3
jsbell
lgtm https://codereview.chromium.org/1421863002/diff/20001/content/browser/cache_storage/cache_storage.cc File content/browser/cache_storage/cache_storage.cc (right): https://codereview.chromium.org/1421863002/diff/20001/content/browser/cache_storage/cache_storage.cc#newcode348 content/browser/cache_storage/cache_storage.cc:348: // TODO(jkarlin): Delete caches that are in the ...
5 years, 1 month ago (2015-10-23 21:20:22 UTC) #5
jkarlin
Thanks! https://codereview.chromium.org/1421863002/diff/20001/content/browser/cache_storage/cache_storage.cc File content/browser/cache_storage/cache_storage.cc (right): https://codereview.chromium.org/1421863002/diff/20001/content/browser/cache_storage/cache_storage.cc#newcode348 content/browser/cache_storage/cache_storage.cc:348: // TODO(jkarlin): Delete caches that are in the ...
5 years, 1 month ago (2015-10-23 23:08:46 UTC) #7
jsbell
still lgtm (and sorry, didn't mean to scare you away from enum+delete, just thought I ...
5 years, 1 month ago (2015-10-23 23:45:33 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1421863002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1421863002/80001
5 years, 1 month ago (2015-10-26 16:14:17 UTC) #10
commit-bot: I haz the power
Committed patchset #4 (id:80001)
5 years, 1 month ago (2015-10-26 17:09:49 UTC) #11
commit-bot: I haz the power
5 years, 1 month ago (2015-10-26 17:10:30 UTC) #12
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/1b8c48882a6b8e754bd10aa1e4af7f2393c96d60
Cr-Commit-Position: refs/heads/master@{#356065}

Powered by Google App Engine
This is Rietveld 408576698