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

Issue 13813015: Separate Simple Backend creation from initialization. (Closed)

Created:
7 years, 8 months ago by pasko-google - do not use
Modified:
7 years, 8 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, gavinp+disk_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@trace-2
Visibility:
Public.

Description

Separate Simple Backend creation from initialization. Also make both backends use the same directory for files, and the same name for the index file. Using the index file each backend will detect if the index belongs to it. Hence, easier to make sure that both cache trees on disk are mutually exclusive. BUG=229437 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=193391

Patch Set 1 #

Total comments: 6

Patch Set 2 : . #

Total comments: 3

Patch Set 3 : rebased #

Patch Set 4 : . #

Patch Set 5 : updated the simple backend initialization according to the new interface in tests #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -109 lines) Patch
M net/disk_cache/cache_creator.cc View 1 2 3 5 chunks +10 lines, -18 lines 0 comments Download
M net/disk_cache/disk_cache_test_base.cc View 1 2 3 4 1 chunk +4 lines, -5 lines 0 comments Download
M net/disk_cache/simple/simple_backend_impl.h View 1 2 chunks +10 lines, -23 lines 0 comments Download
M net/disk_cache/simple/simple_backend_impl.cc View 3 chunks +24 lines, -60 lines 1 comment Download
M net/disk_cache/simple/simple_index.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M net/disk_cache/simple/simple_synchronous_entry.cc View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
pasko-google - do not use
7 years, 8 months ago (2013-04-09 15:53:54 UTC) #1
gavinp
What happens if the cache directory doesn't exist? https://codereview.chromium.org/13813015/diff/1/net/disk_cache/cache_creator.cc File net/disk_cache/cache_creator.cc (right): https://codereview.chromium.org/13813015/diff/1/net/disk_cache/cache_creator.cc#newcode87 net/disk_cache/cache_creator.cc:87: VLOG(1) ...
7 years, 8 months ago (2013-04-09 16:03:49 UTC) #2
pasko-google - do not use
On 2013/04/09 16:03:49, gavinp wrote: > What happens if the cache directory doesn't exist? Each ...
7 years, 8 months ago (2013-04-09 16:20:48 UTC) #3
rvargas (doing something else)
https://codereview.chromium.org/13813015/diff/1006/net/disk_cache/cache_creator.cc File net/disk_cache/cache_creator.cc (left): https://codereview.chromium.org/13813015/diff/1006/net/disk_cache/cache_creator.cc#oldcode118 net/disk_cache/cache_creator.cc:118: #ifdef USE_TRACING_CACHE_BACKEND I should not be seeing this!
7 years, 8 months ago (2013-04-09 19:16:07 UTC) #4
gavinp
Egor, Can you please make another upload of this based onto trunk? I'd like to ...
7 years, 8 months ago (2013-04-10 10:04:39 UTC) #5
pasko-google - do not use
On 2013/04/10 10:04:39, gavinp wrote: > Egor, > > Can you please make another upload ...
7 years, 8 months ago (2013-04-10 12:20:25 UTC) #6
pasko-google - do not use
On 2013/04/10 12:20:25, pasko wrote: > On 2013/04/10 10:04:39, gavinp wrote: > > Egor, > ...
7 years, 8 months ago (2013-04-10 12:25:21 UTC) #7
pasko-google - do not use
On 2013/04/10 12:25:21, pasko wrote: > On 2013/04/10 12:20:25, pasko wrote: > > On 2013/04/10 ...
7 years, 8 months ago (2013-04-10 13:54:31 UTC) #8
gavinp
If the index open fails, does each cache delete all the rest of the other ...
7 years, 8 months ago (2013-04-10 14:20:53 UTC) #9
gavinp
I just spoke offline and Egor reminded me of the failure semantics. LGTM.
7 years, 8 months ago (2013-04-10 14:23:34 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pasko@google.com/13813015/19001
7 years, 8 months ago (2013-04-10 14:23:57 UTC) #11
commit-bot: I haz the power
Change committed as 193391
7 years, 8 months ago (2013-04-10 15:37:13 UTC) #12
rvargas (doing something else)
https://codereview.chromium.org/13813015/diff/1006/net/disk_cache/cache_creator.cc File net/disk_cache/cache_creator.cc (left): https://codereview.chromium.org/13813015/diff/1006/net/disk_cache/cache_creator.cc#oldcode118 net/disk_cache/cache_creator.cc:118: #ifdef USE_TRACING_CACHE_BACKEND On 2013/04/10 10:04:39, gavinp wrote: > On ...
7 years, 8 months ago (2013-04-10 18:50:11 UTC) #13
pasko-google - do not use
On 2013/04/10 18:50:11, rvargas wrote: > https://codereview.chromium.org/13813015/diff/1006/net/disk_cache/cache_creator.cc > File net/disk_cache/cache_creator.cc (left): > > https://codereview.chromium.org/13813015/diff/1006/net/disk_cache/cache_creator.cc#oldcode118 > ...
7 years, 8 months ago (2013-04-11 12:37:59 UTC) #14
gavinp
7 years, 8 months ago (2013-04-11 12:41:30 UTC) #15
Message was sent while issue was closed.
On 2013/04/10 18:50:11, rvargas wrote:
>
https://codereview.chromium.org/13813015/diff/1006/net/disk_cache/cache_creat...
> File net/disk_cache/cache_creator.cc (left):
> 
>
https://codereview.chromium.org/13813015/diff/1006/net/disk_cache/cache_creat...
> net/disk_cache/cache_creator.cc:118: #ifdef USE_TRACING_CACHE_BACKEND
> On 2013/04/10 10:04:39, gavinp wrote:
> > On 2013/04/09 19:16:07, rvargas wrote:
> > > I should not be seeing this!
> > 
> > I'm confused. Since this CL is downstream from
> > https://codereview.chromium.org/13731002 , isn't the line you're commenting
on
> > actually https://codereview.chromium.org/13731002#pair-118 ? Isn't CL
13731002
> > the place to comment on this line?
> > 
> > I just spoke to Egor, he says this CL rebases onto trunk fine.
> > 
> 
> No, I'm not saying that I don't understand what this line is about. I'm saying
> that this CL doesn't depend on anything else to land, and a code review should
> be performed against the _current_ state of the tree, not against the state of
> the code on a developer's machine.
> 
> So I should not be seeing lines in the "old" code that don't exist on TOT,
that
> simple. It's just a request to follow regular code review practices.

"Please rebase this CL onto trunk, I can review it then." says that I lot more
clearly than "I should not be seeing this!"

Powered by Google App Engine
This is Rietveld 408576698