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

Issue 583283002: Reland of "Remove void** from disk_cache interface." (Closed)

Created:
6 years, 3 months ago by gavinp
Modified:
6 years, 3 months ago
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, cbentzel+watch_chromium.org, serviceworker-reviews, gavinp+disk_chromium.org, tzik, horo+watch_chromium.org, jam, nhiroki, darin-cc_chromium.org, piman+watch_chromium.org, kinuko+serviceworker
Base URL:
https://chromium.googlesource.com/chromium/src.git@1-webcacheimpl
Project:
chromium
Visibility:
Public.

Description

Reland of "Remove void** from disk_cache interface." Enumeration and iteration were passing around void**. With this CL, we instead use an Iterator object. TBR=clamy@chromium.org,jkarlin@chromium.org,jsbell@chromium.org BUG=413644 Committed: https://crrev.com/edbfba945a76d97383122a01529abfe3ce63d34d Cr-Commit-Position: refs/heads/master@{#295870}

Patch Set 1 : version as landed (with leak) #

Patch Set 2 : fix leak #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+358 lines, -346 lines) Patch
M content/browser/gpu/shader_disk_cache.cc View 4 chunks +6 lines, -8 lines 0 comments Download
M content/browser/service_worker/service_worker_cache.cc View 5 chunks +6 lines, -11 lines 0 comments Download
M net/disk_cache/backend_unittest.cc View 29 chunks +75 lines, -79 lines 0 comments Download
M net/disk_cache/blockfile/backend_impl.h View 1 chunk +10 lines, -3 lines 0 comments Download
M net/disk_cache/blockfile/backend_impl.cc View 1 1 chunk +25 lines, -9 lines 1 comment Download
M net/disk_cache/blockfile/backend_impl_v3.h View 1 chunk +3 lines, -3 lines 0 comments Download
M net/disk_cache/blockfile/backend_impl_v3.cc View 2 chunks +30 lines, -16 lines 0 comments Download
M net/disk_cache/disk_cache.h View 3 chunks +24 lines, -25 lines 0 comments Download
M net/disk_cache/disk_cache_test_base.h View 3 chunks +13 lines, -1 line 0 comments Download
M net/disk_cache/disk_cache_test_base.cc View 2 chunks +17 lines, -5 lines 0 comments Download
M net/disk_cache/entry_unittest.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M net/disk_cache/memory/mem_backend_impl.h View 4 chunks +7 lines, -4 lines 0 comments Download
M net/disk_cache/memory/mem_backend_impl.cc View 3 chunks +34 lines, -26 lines 0 comments Download
M net/disk_cache/simple/simple_backend_impl.h View 7 chunks +9 lines, -36 lines 0 comments Download
M net/disk_cache/simple/simple_backend_impl.cc View 4 chunks +71 lines, -87 lines 0 comments Download
M net/http/mock_http_cache.h View 2 chunks +2 lines, -3 lines 0 comments Download
M net/http/mock_http_cache.cc View 1 chunk +9 lines, -5 lines 0 comments Download
M net/tools/dump_cache/simple_cache_dumper.h View 2 chunks +2 lines, -6 lines 0 comments Download
M net/tools/dump_cache/simple_cache_dumper.cc View 2 chunks +4 lines, -5 lines 0 comments Download
M net/url_request/view_cache_helper.h View 2 chunks +2 lines, -6 lines 0 comments Download
M net/url_request/view_cache_helper.cc View 2 chunks +5 lines, -4 lines 0 comments Download

Messages

Total messages: 13 (3 generated)
gavinp
https://codereview.chromium.org/583283002/diff/40001/net/disk_cache/blockfile/backend_impl.cc File net/disk_cache/blockfile/backend_impl.cc (right): https://codereview.chromium.org/583283002/diff/40001/net/disk_cache/blockfile/backend_impl.cc#newcode1261 net/disk_cache/blockfile/backend_impl.cc:1261: background_queue_->EndEnumeration(data_); Unfortunately, this still leaks if the iterator is ...
6 years, 3 months ago (2014-09-19 16:45:55 UTC) #2
gavinp
On 2014/09/19 16:45:55, gavinp wrote: > https://codereview.chromium.org/583283002/diff/40001/net/disk_cache/blockfile/backend_impl.cc > File net/disk_cache/blockfile/backend_impl.cc (right): > > https://codereview.chromium.org/583283002/diff/40001/net/disk_cache/blockfile/backend_impl.cc#newcode1261 > ...
6 years, 3 months ago (2014-09-19 18:12:17 UTC) #3
rvargas (doing something else)
lgtm
6 years, 3 months ago (2014-09-20 00:47:59 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/583283002/40001
6 years, 3 months ago (2014-09-20 04:01:05 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:40001) as 1e2fe47b88506c2754b9820fc4a0c15c5388c3fb
6 years, 3 months ago (2014-09-20 13:20:51 UTC) #8
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/edbfba945a76d97383122a01529abfe3ce63d34d Cr-Commit-Position: refs/heads/master@{#295870}
6 years, 3 months ago (2014-09-20 13:21:29 UTC) #9
dcheng
A revert of this CL (patchset #2 id:40001) has been created in https://codereview.chromium.org/592503002/ by dcheng@chromium.org. ...
6 years, 3 months ago (2014-09-20 19:46:34 UTC) #10
dcheng
On 2014/09/20 at 19:46:34, dcheng (OOO) wrote: > A revert of this CL (patchset #2 ...
6 years, 3 months ago (2014-09-20 19:50:58 UTC) #11
dcheng
On 2014/09/20 at 19:50:58, dcheng (OOO) wrote: > On 2014/09/20 at 19:46:34, dcheng (OOO) wrote: ...
6 years, 3 months ago (2014-09-20 20:16:28 UTC) #12
gavinp
6 years, 3 months ago (2014-09-22 16:38:57 UTC) #13
Message was sent while issue was closed.
dcheck,

Good catch. The problem was actually already known, and fixed in a downstream CL
https://codereview.chromium.org/583293002/ , which should have been combined
with this to land.

I've now put the two together, and made the combined CL
https://codereview.chromium.org/588243002/ , which fixes the bug you found that
really shouldn't have been dealt with separately.

Powered by Google App Engine
This is Rietveld 408576698