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

Issue 2040173002: [CacheStorage] Clean up CacheStorageCache lifetimes (Closed)

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

Description

[CacheStorage] Clean up CacheStorageCache lifetimes CacheStorageCache refptrs are held in callbacks to cache operations, meaning that they won't be destructed on profile shutdown. This CL moves the refptrs to member variables so that they will. BUG=617683 Committed: https://crrev.com/f9b13e0a9790f868a54ad4f3d1268d7369239ed4 Cr-Commit-Position: refs/heads/master@{#398529}

Patch Set 1 #

Patch Set 2 : Ordering fix #

Patch Set 3 : Simplify and caught one more reference #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -72 lines) Patch
M content/browser/cache_storage/cache_storage.h View 6 chunks +7 lines, -5 lines 0 comments Download
M content/browser/cache_storage/cache_storage.cc View 11 chunks +44 lines, -31 lines 0 comments Download
M content/browser/cache_storage/cache_storage_cache.cc View 1 2 1 chunk +5 lines, -5 lines 0 comments Download
M content/browser/cache_storage/cache_storage_dispatcher_host.h View 2 chunks +7 lines, -8 lines 0 comments Download
M content/browser/cache_storage/cache_storage_dispatcher_host.cc View 1 2 10 chunks +25 lines, -19 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.h View 3 chunks +5 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 1 2 3 chunks +12 lines, -4 lines 0 comments Download

Messages

Total messages: 15 (7 generated)
jkarlin
nhiroki: PTAL at everything jochen: PTAL at content/browser/renderer_host/ for owners Thanks!
4 years, 6 months ago (2016-06-07 13:39:58 UTC) #2
jochen (gone - plz use gerrit)
lgtm
4 years, 6 months ago (2016-06-07 19:11:22 UTC) #3
nhiroki
lgtm
4 years, 6 months ago (2016-06-08 00:53:30 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2040173002/20001
4 years, 6 months ago (2016-06-08 10:34:22 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2040173002/60001
4 years, 6 months ago (2016-06-08 12:35:40 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 6 months ago (2016-06-08 12:40:05 UTC) #12
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/f9b13e0a9790f868a54ad4f3d1268d7369239ed4 Cr-Commit-Position: refs/heads/master@{#398529}
4 years, 6 months ago (2016-06-08 12:41:38 UTC) #14
jkarlin
4 years, 6 months ago (2016-06-09 13:44:36 UTC) #15
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:60001) has been created in
https://codereview.chromium.org/2040373006/ by jkarlin@chromium.org.

The reason for reverting is: Rather than carefully control the lifetimes of the
refptrs, I'm going to give explicit ownership of caches to CacheStorage so that
on ~CacheStorage the caches die. CacheStorage will give clients handles to the
caches (that extend the lifetime but not past destruction)..

Powered by Google App Engine
This is Rietveld 408576698