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

Issue 11848003: Disk cache: Improve the documentation related to proper use of enumerations. (Closed)

Created:
7 years, 11 months ago by rvargas (doing something else)
Modified:
7 years, 11 months ago
Reviewers:
gavinp
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, gavinp+disk_chromium.org
Visibility:
Public.

Description

Disk cache: Improve the documentation related to proper use of enumerations. BUG=168870 TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=176728

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -1 line) Patch
M net/disk_cache/disk_cache.h View 1 chunk +6 lines, -1 line 1 comment Download

Messages

Total messages: 4 (0 generated)
rvargas (doing something else)
7 years, 11 months ago (2013-01-11 01:51:31 UTC) #1
gavinp
LGTM. The nit is really take it or leave it. https://codereview.chromium.org/11848003/diff/1/net/disk_cache/disk_cache.h File net/disk_cache/disk_cache.h (right): https://codereview.chromium.org/11848003/diff/1/net/disk_cache/disk_cache.h#newcode135 ...
7 years, 11 months ago (2013-01-14 15:20:13 UTC) #2
gavinp
On 2013/01/14 15:20:13, gavinp wrote: > LGTM. The nit is really take it or leave ...
7 years, 11 months ago (2013-01-17 14:18:01 UTC) #3
rvargas (doing something else)
7 years, 11 months ago (2013-01-17 18:38:58 UTC) #4
Message was sent while issue was closed.
On 2013/01/17 14:18:01, gavinp wrote:
> On 2013/01/14 15:20:13, gavinp wrote:
> > LGTM. The nit is really take it or leave it.
> > 
> > https://codereview.chromium.org/11848003/diff/1/net/disk_cache/disk_cache.h
> > File net/disk_cache/disk_cache.h (right):
> > 
> >
>
https://codereview.chromium.org/11848003/diff/1/net/disk_cache/disk_cache.h#n...
> > net/disk_cache/disk_cache.h:135: // may result in loops in the enumeration,
> > skipped entries or similar.
> > Good to spell this out.
> > 
> > The only nit is the use of "enumeration." I think it could be better to say
> > "iteration", not out of correctness (both are correct) but just because
> there's
> > a language feature enumeration which could be confused here, just slowing
down
> > the reading.
> 
> My nit was bogus. file_util::FileEnumerator exists, therefore this naming in
> disk_cache is something I should just get over.

For completeness, I read the nit and said "sure", then went to the code to find
out that the description of the method was to enumerate the entries... so I
changed one of the occurrences of the word in the description to "iterate", to
be less repetitive and clear up any confusion.

Powered by Google App Engine
This is Rietveld 408576698