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

Issue 533293002: Delete enumerations at Simple Cache backend deletion. (Closed)

Created:
6 years, 3 months ago by gavinp
Modified:
6 years, 3 months ago
Reviewers:
clamy, jkarlin, jsbell
CC:
chromium-reviews, cbentzel+watch_chromium.org, gavinp+disk_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Delete enumerations at Simple Cache backend deletion. The memory allocated for an enumeration should be freed when a backend is deleted. R=clamy@chromium.org,jkarlin@chromium.org BUG=410276 Committed: https://crrev.com/48f632fe338f4c0a5b7d48fb865cf0c6af52ab47 Cr-Commit-Position: refs/heads/master@{#294705}

Patch Set 1 #

Patch Set 2 : get really explicit about sizes #

Total comments: 6

Patch Set 3 : helper fns #

Patch Set 4 : lint #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -6 lines) Patch
M net/disk_cache/backend_unittest.cc View 1 2 1 chunk +18 lines, -0 lines 0 comments Download
M net/disk_cache/simple/simple_backend_impl.h View 1 2 4 chunks +17 lines, -0 lines 0 comments Download
M net/disk_cache/simple/simple_backend_impl.cc View 1 2 3 3 chunks +29 lines, -6 lines 0 comments Download

Messages

Total messages: 12 (2 generated)
gavinp
clamy: PTAL. jkarlin: FYI. Good find.
6 years, 3 months ago (2014-09-03 19:11:56 UTC) #1
clamy
Thanks! Lgtm, with two nits. https://chromiumcodereview.appspot.com/533293002/diff/20001/net/disk_cache/simple/simple_backend_impl.cc File net/disk_cache/simple/simple_backend_impl.cc (right): https://chromiumcodereview.appspot.com/533293002/diff/20001/net/disk_cache/simple/simple_backend_impl.cc#newcode627 net/disk_cache/simple/simple_backend_impl.cc:627: std::vector<uint64>* entry_list = NULL; ...
6 years, 3 months ago (2014-09-03 19:47:49 UTC) #2
jsbell
drive-by... https://codereview.chromium.org/533293002/diff/20001/net/disk_cache/simple/simple_backend_impl.cc File net/disk_cache/simple/simple_backend_impl.cc (right): https://codereview.chromium.org/533293002/diff/20001/net/disk_cache/simple/simple_backend_impl.cc#newcode487 net/disk_cache/simple/simple_backend_impl.cc:487: const ActiveEnumerationMap::KeyType enumeration_id = ptrdiff_enumeration_id; How about a ...
6 years, 3 months ago (2014-09-03 22:30:42 UTC) #4
gavinp
I've decided that pointer casting is really ugly, and to write C++ instead. See https://codereview.chromium.org/542733002/ ...
6 years, 3 months ago (2014-09-04 17:48:42 UTC) #5
gavinp
On 2014/09/04 17:48:42, gavinp wrote: > I've decided that pointer casting is really ugly, and ...
6 years, 3 months ago (2014-09-12 20:22:20 UTC) #6
gavinp
ty jsbell for your review, and for your contributions to moving forward our discussion on ...
6 years, 3 months ago (2014-09-12 21:01:04 UTC) #7
jsbell
lgtm
6 years, 3 months ago (2014-09-12 21:16:49 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/533293002/60001
6 years, 3 months ago (2014-09-12 21:53:45 UTC) #10
commit-bot: I haz the power
Committed patchset #4 (id:60001) as 6f69110b2167c4ec4d034890e1f358c9c1247cf4
6 years, 3 months ago (2014-09-13 00:46:43 UTC) #11
commit-bot: I haz the power
6 years, 3 months ago (2014-09-13 00:52:38 UTC) #12
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/48f632fe338f4c0a5b7d48fb865cf0c6af52ab47
Cr-Commit-Position: refs/heads/master@{#294705}

Powered by Google App Engine
This is Rietveld 408576698