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

Issue 20737002: Change the API of disk_cache::CreateCacheBackend to use scoped_ptr (Closed)

Created:
7 years, 5 months ago by qsr
Modified:
7 years, 4 months ago
CC:
chromium-reviews, michaeln, cbentzel+watch_chromium.org, gavinp+disk_chromium.org, jam, apatrick_chromium, joi+watch-content_chromium.org, darin-cc_chromium.org, native-client-reviews_googlegroups.com
Visibility:
Public.

Description

Change the API of disk_cache::CreateCacheBackend to use scoped_ptr Using scoped_ptr instead of pointer allows the API to show the transfert of ownership and ensure that the caller will holds it. R=rvargas@chromium.org TBR=bradchen@chromium.org,apatrick@chromium.org,darin@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=215008

Patch Set 1 #

Patch Set 2 : Re-upload #

Patch Set 3 : Fix windows specific file. #

Patch Set 4 : Fix windows specific file. #

Patch Set 5 : Fix windows specific file. #

Patch Set 6 : Fix windows specific file. #

Total comments: 16

Patch Set 7 : Follow review #

Patch Set 8 : Fix new test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+136 lines, -180 lines) Patch
M chrome/browser/nacl_host/pnacl_translation_cache.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/nacl_host/pnacl_translation_cache.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -3 lines 0 comments Download
M content/browser/gpu/shader_disk_cache.h View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/gpu/shader_disk_cache.cc View 1 chunk +1 line, -4 lines 0 comments Download
M net/disk_cache/backend_unittest.cc View 1 2 3 4 5 6 7 28 chunks +47 lines, -77 lines 0 comments Download
M net/disk_cache/cache_creator.cc View 1 2 3 4 5 6 9 chunks +12 lines, -14 lines 0 comments Download
M net/disk_cache/disk_cache.h View 1 chunk +4 lines, -2 lines 0 comments Download
M net/disk_cache/disk_cache_perftest.cc View 3 chunks +5 lines, -6 lines 0 comments Download
M net/disk_cache/disk_cache_test_base.h View 1 chunk +1 line, -1 line 0 comments Download
M net/disk_cache/disk_cache_test_base.cc View 1 2 3 4 5 6 7 chunks +12 lines, -13 lines 0 comments Download
net/disk_cache/entry_unittest.cc View 1 2 3 4 5 6 2 chunks +7 lines, -9 lines 0 comments Download
M net/disk_cache/mem_backend_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M net/disk_cache/mem_backend_impl.cc View 1 chunk +5 lines, -5 lines 0 comments Download
M net/disk_cache/tracing_cache_backend.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M net/disk_cache/tracing_cache_backend.cc View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M net/http/http_cache.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/http/http_cache.cc View 1 2 3 4 5 6 5 chunks +5 lines, -6 lines 0 comments Download
M net/http/http_cache_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M net/http/mock_http_cache.h View 4 chunks +5 lines, -5 lines 0 comments Download
M net/http/mock_http_cache.cc View 4 chunks +7 lines, -7 lines 0 comments Download
M net/tools/dump_cache/simple_cache_dumper.h View 1 chunk +1 line, -1 line 0 comments Download
M net/tools/dump_cache/simple_cache_dumper.cc View 4 chunks +3 lines, -6 lines 0 comments Download
M net/tools/dump_cache/upgrade_win.cc View 1 2 4 chunks +4 lines, -4 lines 0 comments Download
M webkit/browser/appcache/appcache_disk_cache.cc View 3 chunks +3 lines, -5 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
qsr
7 years, 5 months ago (2013-07-26 14:12:31 UTC) #1
rvargas (doing something else)
I've never been a fan of forcing consumers do something on a given way, but ...
7 years, 5 months ago (2013-07-26 21:05:01 UTC) #2
qsr
https://codereview.chromium.org/20737002/diff/26001/net/disk_cache/backend_unittest.cc File net/disk_cache/backend_unittest.cc (right): https://codereview.chromium.org/20737002/diff/26001/net/disk_cache/backend_unittest.cc#newcode59 net/disk_cache/backend_unittest.cc:59: } On 2013/07/26 21:05:01, rvargas wrote: > nit: remove ...
7 years, 4 months ago (2013-07-29 08:26:28 UTC) #3
rvargas (doing something else)
LGTM, Thanks.
7 years, 4 months ago (2013-07-29 23:57:27 UTC) #4
qsr
+darin for OWNERS
7 years, 4 months ago (2013-07-30 07:17:10 UTC) #5
qsr
On 2013/07/30 07:17:10, qsr wrote: > +darin for OWNERS Darin: gentle ping?
7 years, 4 months ago (2013-07-31 09:05:45 UTC) #6
qsr
+bradchen@chromium.org for chrome/browser/nacl_host +apatrick@chromium.org for chrome/browser/gpu
7 years, 4 months ago (2013-08-01 07:58:07 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qsr@chromium.org/20737002/46001
7 years, 4 months ago (2013-08-01 07:58:32 UTC) #8
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 4 months ago (2013-08-01 08:21:27 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qsr@chromium.org/20737002/107002
7 years, 4 months ago (2013-08-01 08:29:46 UTC) #10
commit-bot: I haz the power
7 years, 4 months ago (2013-08-01 11:57:58 UTC) #11
Message was sent while issue was closed.
Change committed as 215008

Powered by Google App Engine
This is Rietveld 408576698