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

Issue 28266: Command Line switch for Portable FTP (Patch SET-1) (Closed)

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

Description

(This CL has been committed: http://codereview.chromium.org/42197/show.) BUG=4965 R=darin,wtc,dank,eroman Description: Command Line switch "--new-ftp" added for new portable FTP implementation.

Patch Set 1 #

Total comments: 14

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 8

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 36

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Total comments: 16

Patch Set 10 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+200 lines, -5 lines) Patch
M chrome/browser/net/chrome_url_request_context.cc View 2 3 4 5 6 7 8 9 3 chunks +11 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M net/build/net.vcproj View 1 2 3 7 3 chunks +13 lines, -3 lines 0 comments Download
M net/net.gyp View 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M net/net_lib.scons View 1 chunk +2 lines, -0 lines 0 comments Download
M net/url_request/url_request_context.h View 2 3 4 5 6 4 chunks +9 lines, -1 line 0 comments Download
M net/url_request/url_request_ftp_job.cc View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -1 line 0 comments Download
A net/url_request/url_request_new_ftp_job.h View 1 2 3 4 5 6 7 8 1 chunk +61 lines, -0 lines 0 comments Download
A net/url_request/url_request_new_ftp_job.cc View 1 2 3 4 5 6 7 8 9 1 chunk +91 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
ibrar
11 years, 10 months ago (2009-02-27 20:54:57 UTC) #1
darin (slow to review)
http://codereview.chromium.org/28266/diff/1/5 File chrome/common/chrome_switches.cc (right): http://codereview.chromium.org/28266/diff/1/5#newcode392 Line 392: const wchar_t kNewFtp[] = L"new-ftp"; nit: it looks ...
11 years, 10 months ago (2009-02-27 21:19:32 UTC) #2
ibrar
http://codereview.chromium.org/28266/diff/1/5 File chrome/common/chrome_switches.cc (right): http://codereview.chromium.org/28266/diff/1/5#newcode392 Line 392: const wchar_t kNewFtp[] = L"new-ftp"; On 2009/02/27 21:19:33, ...
11 years, 10 months ago (2009-02-27 23:00:48 UTC) #3
darin (slow to review)
you'll also need to update net/net.gyp and net/net_lib.scons http://codereview.chromium.org/28266/diff/1015/1022 File net/url_request/url_request_context.h (right): http://codereview.chromium.org/28266/diff/1015/1022#newcode69 Line 69: ...
11 years, 9 months ago (2009-03-06 16:40:16 UTC) #4
ibrar
http://codereview.chromium.org/28266/diff/1015/1022 File net/url_request/url_request_context.h (right): http://codereview.chromium.org/28266/diff/1015/1022#newcode69 Line 69: bool is_new_ftp() { On 2009/03/06 16:40:16, darin wrote: ...
11 years, 9 months ago (2009-03-10 15:55:24 UTC) #5
wtc
Hi, Darin asked me to review your FTP CLs. Thank you for working on the ...
11 years, 9 months ago (2009-03-10 21:34:31 UTC) #6
ibrar
Thanks wtc for your kind review. I have fixed what you pointed out. http://codereview.chromium.org/28266/diff/4016/3028 File ...
11 years, 9 months ago (2009-03-11 08:56:47 UTC) #7
wtc
Ibrar, This looks much better. Please fix the following nits, and then we can check ...
11 years, 9 months ago (2009-03-13 02:08:24 UTC) #8
ibrar
11 years, 9 months ago (2009-03-13 16:50:08 UTC) #9
Thanks wtc,

I don't have commit rights, you have to do that

http://codereview.chromium.org/28266/diff/5029/6018
File chrome/browser/net/chrome_url_request_context.cc (right):

http://codereview.chromium.org/28266/diff/5029/6018#newcode86
Line 86: // The kNewFtp switch is Windows specific only because we have 
multiple FTP
On 2009/03/13 02:08:24, wtc wrote:
> Nit: delete the extra space before "multiple".

Done.

http://codereview.chromium.org/28266/diff/5029/6012
File net/url_request/url_request_ftp_job.cc (right):

http://codereview.chromium.org/28266/diff/5029/6012#newcode65
Line 65: return new URLRequestNewFtpJob(request);
On 2009/03/13 02:08:24, wtc wrote:
> Please change this to:
> 
>   return URLRequestNewFtpJob::Factory(request, scheme);
> 
> and move it (including the "if") to the beginning of this
> function.
> 
> This way we will start to use the URLRequestNewFtpJob::Factory method.

Done.

http://codereview.chromium.org/28266/diff/5029/6015
File net/url_request/url_request_new_ftp_job.cc (right):

http://codereview.chromium.org/28266/diff/5029/6015#newcode1
Line 1: // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
On 2009/03/13 02:08:24, wtc wrote:
> Let me find out whether new files should have 2009 or
> 2006-2009 in the copyright notice.

Ok

http://codereview.chromium.org/28266/diff/5029/6015#newcode7
Line 7: #include "base/base_switches.h"
On 2009/03/13 02:08:24, wtc wrote:
> Please remove all the headers that you don't need now, and
> add back the ones you need when you write new code.

Done.

http://codereview.chromium.org/28266/diff/5029/6015#newcode23
Line 23: URLRequestJob* URLRequestNewFtpJob::Factory(URLRequest* request,
On 2009/03/13 02:08:24, wtc wrote:
> Nit: move this method after the destructor to match the
> declaration order in the header.  See
>
http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml#Declaration_Order

Done.

http://codereview.chromium.org/28266/diff/5029/6015#newcode70
Line 70: return 0;
On 2009/03/13 02:08:24, wtc wrote:
> Return -1 instead of 0 on failure.

Done.

http://codereview.chromium.org/28266/diff/5029/6015#newcode75
Line 75: return true;
On 2009/03/13 02:08:24, wtc wrote:
> Return false on failure.

Done.

http://codereview.chromium.org/28266/diff/5029/6015#newcode79
Line 79: int buf_size, int *bytes_read) {
On 2009/03/13 02:08:24, wtc wrote:
> Nit: in function declaration and definitions, if we
> can't list all the parameters on one line,
> we're supposed to list the parameters one on each line,
> even though we don't follow that guideline strictly in the
> net module.  See
>
http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml#Function_Decla...
> 

Done.

Powered by Google App Engine
This is Rietveld 408576698