Chromium Code Reviews
Description[CacheStorage] Fix ownership of doomed cache as it's cleaned up
Releasing of a doomed handle winds up passing
std::unique_ptr<CacheStorageCache> values around in callbacks. Rather than the
callback owning the cache, let's keep it in the CacheStorage's doomed_caches_
object so that ownership is always clear and to maintain the invariant that Caches are destructed before their respective CacheStorage is.
BUG=676325
Committed: https://crrev.com/e8992984e25e4a4fcfb88d3164379754b6df2879
Cr-Commit-Position: refs/heads/master@{#440149}
Patch Set 1 #
Depends on Patchset: Messages
Total messages: 16 (10 generated)
|
||||||||||||||||||||||||||||