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

Issue 75033: Retrial of the first step to port file_util::CountFilesCreatedAfter().... (Closed)

Created:
11 years, 8 months ago by hamaji
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Retrial of the first step to port file_util::CountFilesCreatedAfter(). CountFileCreatedAfter() takes FilePath and Time instead of wstring and FILETIME. We still need to implement the function for POSIX. I'll work on the change after this change. In the previous attempt, it seemed that the test for CountFilesCreatedAfter() failed due to discrepancy between system clock and Time::Now() on the build bot. Time::Now() doesn't always use system clock for better performance and the difference can be large on virtual machines. I added Time::NowFromSystemTime() to solve this issue. BUG=9833

Patch Set 1 #

Total comments: 6

Patch Set 2 : '' #

Total comments: 2

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -35 lines) Patch
M base/file_util.h View 2 chunks +7 lines, -4 lines 0 comments Download
M base/file_util_unittest.cc View 2 chunks +7 lines, -10 lines 0 comments Download
M base/file_util_win.cc View 3 chunks +7 lines, -4 lines 0 comments Download
M base/time.h View 1 chunk +6 lines, -0 lines 0 comments Download
M base/time_mac.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M base/time_posix.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M base/time_win.cc View 1 2 1 chunk +8 lines, -1 line 0 comments Download
M chrome/test/automated_ui_tests/automated_ui_tests.h View 2 chunks +5 lines, -1 line 0 comments Download
M chrome/test/automated_ui_tests/automated_ui_tests.cc View 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/test/ui/ui_test.h View 1 chunk +1 line, -6 lines 0 comments Download
M chrome/test/ui/ui_test.cc View 2 chunks +2 lines, -6 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
hamaji
Automated tests succeeded 4 times with this change.
11 years, 8 months ago (2009-04-16 14:02:53 UTC) #1
Erik does not do reviews
LGTM with a few nits http://codereview.chromium.org/75033/diff/1/7 File base/time_mac.cc (right): http://codereview.chromium.org/75033/diff/1/7#newcode45 Line 45: return Now(); add ...
11 years, 8 months ago (2009-04-16 16:25:36 UTC) #2
hamaji
Thanks for the review! http://codereview.chromium.org/75033/diff/1/7 File base/time_mac.cc (right): http://codereview.chromium.org/75033/diff/1/7#newcode45 Line 45: return Now(); On 2009/04/16 ...
11 years, 8 months ago (2009-04-16 17:45:11 UTC) #3
Erik does not do reviews
http://codereview.chromium.org/75033/diff/2002/1019 File base/time_win.cc (right): http://codereview.chromium.org/75033/diff/2002/1019#newcode137 Line 137: return initial_time; We shouldn't be relying on implicit ...
11 years, 8 months ago (2009-04-16 18:05:08 UTC) #4
hamaji
Thanks! http://codereview.chromium.org/75033/diff/2002/1019 File base/time_win.cc (right): http://codereview.chromium.org/75033/diff/2002/1019#newcode137 Line 137: return initial_time; On 2009/04/16 18:05:08, Erik Kay ...
11 years, 8 months ago (2009-04-16 18:12:14 UTC) #5
Erik does not do reviews
LGTM I'll try to get this uploaded the bots later today.
11 years, 8 months ago (2009-04-16 19:52:53 UTC) #6
hamaji
11 years, 8 months ago (2009-04-17 22:27:43 UTC) #7
On 2009/04/16 19:52:53, Erik Kay wrote:
> LGTM
> 
> I'll try to get this uploaded the bots later today.

Thanks, could you submit this if the test is OK?

Thanks!

Powered by Google App Engine
This is Rietveld 408576698