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

Issue 126096: Using base::Time::Exploded instead of "tm" (FTP PATCH SET 5) (Closed)

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

Description

[Replaced by http://codereview.chromium.org/149772 ] BUG=4965 R=darin,wtc Description: Use of base::Time::Exploded instead of "tm" in ftp_directory_parser.cc

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 10

Patch Set 5 : '' #

Total comments: 43

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Total comments: 15

Patch Set 9 : '' #

Patch Set 10 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -140 lines) Patch
M net/ftp/ftp_directory_parser.h View 1 2 3 4 5 6 7 8 9 2 chunks +19 lines, -19 lines 0 comments Download
M net/ftp/ftp_directory_parser.cc View 1 2 3 4 5 6 7 8 10 chunks +93 lines, -92 lines 0 comments Download
M net/url_request/url_request_new_ftp_job.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -29 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
ibrar
Please review
11 years, 6 months ago (2009-06-13 21:01:15 UTC) #1
ibrar
Now I am getting "File Modified Date" as in Mozilla. My only worry is; it ...
11 years, 6 months ago (2009-06-13 21:53:06 UTC) #2
darin (slow to review)
Looks OK to me. Some nits: http://codereview.chromium.org/126096/diff/16/1013 File net/ftp/ftp_directory_parser.cc (right): http://codereview.chromium.org/126096/diff/16/1013#newcode1367 Line 1367: base::Time tim ...
11 years, 6 months ago (2009-06-16 22:40:12 UTC) #3
ibrar
http://codereview.chromium.org/126096/diff/16/1013 File net/ftp/ftp_directory_parser.cc (right): http://codereview.chromium.org/126096/diff/16/1013#newcode1367 Line 1367: base::Time tim = Time::FromTimeT(now); On 2009/06/16 22:40:12, darin ...
11 years, 6 months ago (2009-06-17 16:21:38 UTC) #4
darin (slow to review)
http://codereview.chromium.org/126096/diff/16/1012 File net/ftp/ftp_directory_parser.h (right): http://codereview.chromium.org/126096/diff/16/1012#newcode57 Line 57: base::Time::Exploded now_tm; // needed for year determination. No ...
11 years, 6 months ago (2009-06-17 17:02:22 UTC) #5
wtc
Ibrar, I don't know why we're getting different times from the current FTP code (which ...
11 years, 6 months ago (2009-06-17 17:56:36 UTC) #6
ibrar
I am still looking. http://codereview.chromium.org/126096/diff/1018/20 File net/ftp/ftp_directory_parser.cc (right): http://codereview.chromium.org/126096/diff/1018/20#newcode175 Line 175: base::Time time = Time::FromTimeT(tim_t); ...
11 years, 6 months ago (2009-06-20 18:11:35 UTC) #7
wtc
On 2009/06/20 18:11:35, ibrar wrote: > I am still looking. OK, let me know when ...
11 years, 6 months ago (2009-06-23 01:22:06 UTC) #8
ibrar
Please review!
11 years, 6 months ago (2009-06-26 07:39:51 UTC) #9
wtc
Ibrar, Thanks a lot for the new Patch Set. Please fix the problems below. I ...
11 years, 6 months ago (2009-06-26 22:30:08 UTC) #10
ibrar
11 years, 5 months ago (2009-07-11 08:11:20 UTC) #11
http://codereview.chromium.org/126096/diff/5001/5003
File net/ftp/ftp_directory_parser.cc (right):

http://codereview.chromium.org/126096/diff/5001/5003#newcode599
Line 599: result->fe_time.year += 1900;
On 2009/06/26 22:30:08, wtc wrote:
> This is wrong.  What I meant is this:
>   if (result->fe_time.year < 70)
>     result->fe_time.year += 100;
>   result->fe_time.year += 1900;

Done.

http://codereview.chromium.org/126096/diff/5001/5003#newcode714
Line 714: result->fe_time.year += 1900;
On 2009/06/26 22:30:08, wtc wrote:
> Same here.  What I meant is:
>   if (result->fe_time.year < 80)
>     result->fe_time.year += 100;
>   result->fe_time.year += 1900;

Done.

http://codereview.chromium.org/126096/diff/5001/5003#newcode812
Line 812: result->fe_time.year += 1900;
On 2009/06/26 22:30:08, wtc wrote:
> This should be
>   if (result->fe_time.year < 80)
>     result->fe_time.year += 100;
>   result->fe_time.year += 1900;

Done.

http://codereview.chromium.org/126096/diff/5001/5003#newcode988
Line 988: if (!state->now_time) {
On 2009/06/26 22:30:08, wtc wrote:
> Assuming we change now_time to a bool now_tm_valid member,
> this block of code should look like this:
>   if (!state->now_tm_valid) {
>     Time t = Time::Now();
>     t.LocalExplode(&state->now_tm);
>     state->now_tm_valid = true;
>   }

Done.

http://codereview.chromium.org/126096/diff/5001/5003#newcode1137
Line 1137: result->fe_time.month = pos / 3;
On 2009/06/26 22:30:08, wtc wrote:
> Are you sure you don't need to + 1 here?

Done.

http://codereview.chromium.org/126096/diff/5001/5003#newcode1148
Line 1148: if (result->fe_time.year < 80)  // SuperTCP
On 2009/06/26 22:30:08, wtc wrote:
> What I meant is this:
>   if (result->fe_time.year < 80)  // SuperTCP
>     result->fe_time.year += 100;
>   result->fe_time.year += 1900;

Done.

http://codereview.chromium.org/126096/diff/5001/5003#newcode1362
Line 1362: if (!state->now_time) {
On 2009/06/26 22:30:08, wtc wrote:
> Assuming we change now_time to a bool now_tm_valid member,
> this block of code should look like this:
>   if (!state->now_tm_valid) {
>     Time t = Time::Now();
>     t.LocalExplode(&state->now_tm);
>     state->now_tm_valid = true;
>   }

Done.

Powered by Google App Engine
This is Rietveld 408576698