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

Issue 2598643002: [CacheStorage] Fix ownership of doomed cache as it's cleaned up (Closed)

Created:
4 years ago by jkarlin
Modified:
4 years ago
Reviewers:
cmumford
CC:
chromium-reviews, jam, darin-cc_chromium.org, jkarlin+watch_chromium.org, nhiroki
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -14 lines) Patch
M content/browser/cache_storage/cache_storage.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/cache_storage/cache_storage.cc View 2 chunks +10 lines, -12 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 16 (10 generated)
jkarlin
cmumford@ PTAL, thanks!
4 years ago (2016-12-21 15:37:36 UTC) #5
cmumford
lgtm
4 years ago (2016-12-21 17:15:54 UTC) #7
jkarlin
Thanks!
4 years ago (2016-12-21 17:31:06 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2598643002/1
4 years ago (2016-12-21 17:31:13 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-12-21 18:04:19 UTC) #14
commit-bot: I haz the power
4 years ago (2016-12-21 18:06:50 UTC) #16
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/e8992984e25e4a4fcfb88d3164379754b6df2879
Cr-Commit-Position: refs/heads/master@{#440149}

Powered by Google App Engine
This is Rietveld 408576698