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

Issue 2153002: file_util: Convert the wstring version of IsDirectoryEmpty to FilePath. (Closed)

Created:
10 years, 7 months ago by tfarina
Modified:
9 years, 7 months ago
Reviewers:
tony
CC:
chromium-reviews
Base URL:
git://git.chromium.org/chromium.git
Visibility:
Public.

Description

file_util: Convert the wstring version of IsDirectoryEmpty to FilePath. BUG=24672 TEST=compiles Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=48237

Patch Set 1 : " #

Total comments: 1

Patch Set 2 : unittests #

Total comments: 1

Patch Set 3 : fix nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -17 lines) Patch
M base/file_util.h View 1 chunk +4 lines, -4 lines 0 comments Download
M base/file_util.cc View 2 chunks +10 lines, -1 line 0 comments Download
M base/file_util_unittest.cc View 2 1 chunk +16 lines, -0 lines 0 comments Download
M base/file_util_win.cc View 1 chunk +0 lines, -9 lines 0 comments Download
M chrome/installer/setup/uninstall.cc View 1 1 chunk +2 lines, -3 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
tfarina
Hi Tony, could you take a look?
10 years, 7 months ago (2010-05-24 15:46:15 UTC) #1
tony
The change looks fine. Do you think you could write a unittest for this function? ...
10 years, 7 months ago (2010-05-25 00:11:42 UTC) #2
tfarina
On 2010/05/25 00:11:42, tony wrote: > The change looks fine. Do you think you could ...
10 years, 7 months ago (2010-05-25 01:33:33 UTC) #3
tony
LGTM http://codereview.chromium.org/2153002/diff/4006/12003 File base/file_util_unittest.cc (right): http://codereview.chromium.org/2153002/diff/4006/12003#newcode1628 base/file_util_unittest.cc:1628: if (file_util::PathExists(empty_dir)) Nit: Why would the directory already ...
10 years, 7 months ago (2010-05-25 01:51:53 UTC) #4
tfarina
10 years, 7 months ago (2010-05-25 02:08:57 UTC) #5
On 2010/05/25 01:51:53, tony wrote:
> LGTM
> 
> http://codereview.chromium.org/2153002/diff/4006/12003
> File base/file_util_unittest.cc (right):
> 
> http://codereview.chromium.org/2153002/diff/4006/12003#newcode1628
> base/file_util_unittest.cc:1628: if (file_util::PathExists(empty_dir))
> Nit: Why would the directory already exist?  Can't we make this an
ASSERT_FALSE
> instead?

I think this is more safe with the trybots scenario (sometimes they are flaky),
but I changed to ASSERT_FALSE.

Powered by Google App Engine
This is Rietveld 408576698