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

Issue 1220001: Computes the total size of the files in a directory... (Closed)

Created:
10 years, 9 months ago by cpu_(ooo_6.6-7.5)
Modified:
9 years, 7 months ago
CC:
chromium-reviews, brettw-cc_chromium.org
Visibility:
Public.

Description

Function to compute the total size of the files in a directory We need this for the diagnostic mode but it can be used by others. Did not see test for GetFileSize() so added them BUG=none TEST=ut included Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=42540

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 6

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -0 lines) Patch
M base/file_util.h View 1 1 chunk +7 lines, -0 lines 0 comments Download
M base/file_util.cc View 1 2 3 1 chunk +17 lines, -0 lines 0 comments Download
M base/file_util_unittest.cc View 2 3 1 chunk +28 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
cpu_(ooo_6.6-7.5)
.
10 years, 9 months ago (2010-03-24 00:59:35 UTC) #1
sehr (please use chromium)
coding convention nits, one spelling nit, and a question. Fix, and LGTM. http://codereview.chromium.org/1220001/diff/10001/6003 File base/file_util.cc ...
10 years, 9 months ago (2010-03-24 20:30:47 UTC) #2
cpu_(ooo_6.6-7.5)
thanks I'll commit when I can. http://codereview.chromium.org/1220001/diff/10001/6003 File base/file_util.cc (right): http://codereview.chromium.org/1220001/diff/10001/6003#newcode274 base/file_util.cc:274: for (FilePath current ...
10 years, 9 months ago (2010-03-24 21:20:30 UTC) #3
cpu_(ooo_6.6-7.5)
10 years, 9 months ago (2010-03-24 21:21:14 UTC) #4
Also changed the test with one more nested directory level.


On 2010/03/24 21:20:30, cpu wrote:
> thanks I'll commit when I can.
> 
> http://codereview.chromium.org/1220001/diff/10001/6003
> File base/file_util.cc (right):
> 
> http://codereview.chromium.org/1220001/diff/10001/6003#newcode274
> base/file_util.cc:274: for (FilePath current = file_iter.Next();
> !current.empty(); current = file_iter.Next()) {
> On 2010/03/24 20:30:47, sehr wrote:
> > 80 columns?
> 
> Done.
> 
> http://codereview.chromium.org/1220001/diff/10001/6003#newcode278
> base/file_util.cc:278: LARGE_INTEGER li = {info.nFileSizeLow,
> info.nFileSizeHigh};
> On 2010/03/24 20:30:47, sehr wrote:
> > aren't we supposed to have spaces after { and before }?
> 
> I don't recall, I changed it in case.

Powered by Google App Engine
This is Rietveld 408576698