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

Issue 413003: Cleaning up Code. (Closed)

Created:
11 years, 1 month ago by Shriram
Modified:
9 years, 7 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

1. Changes program() to GetProgram() which returns program part of command line string. Get Program()'s used for converting program in wstring type (present in the old chromium code) to FilePath. 2. Uses DCHECK_EQ instead of DCHECK. As per Peter Kasting's comment, DCHECK_EQ used to make logic shorter. BUG=none TEST=none committed as r46281

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 2

Patch Set 6 : '' #

Patch Set 7 : '' #

Total comments: 3

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Patch Set 11 : '' #

Total comments: 4

Patch Set 12 : '' #

Patch Set 13 : '' #

Patch Set 14 : '' #

Patch Set 15 : '' #

Total comments: 4

Patch Set 16 : '' #

Total comments: 4

Patch Set 17 : '' #

Total comments: 3

Patch Set 18 : '' #

Patch Set 19 : '' #

Patch Set 20 : '' #

Total comments: 6

Patch Set 21 : '' #

Patch Set 22 : '' #

Patch Set 23 : '' #

Patch Set 24 : '' #

Patch Set 25 : '' #

Patch Set 26 : '' #

Patch Set 27 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -4 lines) Patch
M base/command_line.cc View 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 3 chunks +3 lines, -4 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
Lei Zhang
patch set 3 doesn't apply cleanly against ToT (tip of the tree) @ r32820.
11 years, 1 month ago (2009-11-23 19:07:57 UTC) #1
Shriram
Ready for review
11 years ago (2009-12-03 15:53:09 UTC) #2
Lei Zhang
You need to follow the coding style guide. http://www.chromium.org/developers/coding-style http://codereview.chromium.org/413003/diff/6010/6012 File base/command_line.cc (right): http://codereview.chromium.org/413003/diff/6010/6012#newcode270 base/command_line.cc:270: ...
11 years ago (2009-12-03 19:07:36 UTC) #3
Lei Zhang
Still a lot of style guide violations. http://codereview.chromium.org/413003/diff/13011/12003 File base/command_line.cc (right): http://codereview.chromium.org/413003/diff/13011/12003#newcode262 base/command_line.cc:262: nit: why ...
11 years ago (2009-12-07 18:59:25 UTC) #4
Lei Zhang
You still haven't fixed the lint errors.
11 years ago (2009-12-08 18:51:09 UTC) #5
Shriram
Before I fix the lint errors, I am trying to see if I can replace ...
11 years ago (2009-12-08 22:21:32 UTC) #6
Shriram
I don't see any more lint errors for the latest patch but upon gcl lint ...
11 years ago (2009-12-09 07:50:57 UTC) #7
Lei Zhang
You have passed the automated linter, but your style is still wrong. Please read the ...
11 years ago (2009-12-09 08:19:49 UTC) #8
Shriram
couple of lint errors as can be seen in the http://google.pastebin.com/m5dfa701 for build_time generated files ...
11 years ago (2009-12-10 04:31:12 UTC) #9
Lei Zhang
On 2009/12/10 04:31:12, Sam wrote: > couple of lint errors as can be seen in ...
11 years ago (2009-12-10 19:33:40 UTC) #10
Lei Zhang
http://codereview.chromium.org/413003/diff/23005/29023 File base/command_line.cc (right): http://codereview.chromium.org/413003/diff/23005/29023#newcode259 base/command_line.cc:259: std::wstring CommandLine::program() const { It's weird that you removed ...
11 years ago (2009-12-15 08:37:26 UTC) #11
Shriram
On 2009/12/15 08:37:26, Lei Zhang wrote: > http://codereview.chromium.org/413003/diff/23005/29023 > File base/command_line.cc (right): > > http://codereview.chromium.org/413003/diff/23005/29023#newcode259 ...
11 years ago (2009-12-15 17:07:15 UTC) #12
Lei Zhang
http://codereview.chromium.org/413003/diff/31001/31002 File base/command_line.cc (right): http://codereview.chromium.org/413003/diff/31001/31002#newcode296 base/command_line.cc:296: ) + value_string; Please revert this change. The lack ...
10 years, 11 months ago (2010-01-04 19:07:44 UTC) #13
Lei Zhang
LGTM with formatting errors fixed. http://codereview.chromium.org/413003/diff/36001/37001 File base/command_line.cc (right): http://codereview.chromium.org/413003/diff/36001/37001#newcode296 base/command_line.cc:296: ) + value_string; You ...
10 years, 11 months ago (2010-01-12 19:07:05 UTC) #14
Lei Zhang
Passed the try servers on patch set 20. However, it looks like you got rid ...
10 years, 11 months ago (2010-01-25 20:47:27 UTC) #15
Shriram
looks like program_ needs the program() call as per command_line.cc. maybe creating a FilePath variable ...
10 years, 10 months ago (2010-02-08 04:20:38 UTC) #16
Peter Kasting
Nit: Please update all files' copyrights to be "Copyright (c) 2010" http://codereview.chromium.org/413003/diff/43001/43002 File base/command_line.cc (right): ...
10 years, 10 months ago (2010-02-08 04:31:51 UTC) #17
Shriram
http://codereview.chromium.org/413003/diff/36001/37001 File base/command_line.cc (right): http://codereview.chromium.org/413003/diff/36001/37001#newcode296 base/command_line.cc:296: ) + value_string; On 2010/01/12 19:07:05, Lei Zhang wrote: ...
10 years, 9 months ago (2010-03-13 10:48:36 UTC) #18
Shriram
On 2010/03/13 10:48:36, Sam wrote ignore the comment regarding the File base/command_line.cc
10 years, 9 months ago (2010-03-13 10:49:43 UTC) #19
Lei Zhang
On 2010/03/13 10:49:43, Sam wrote: > On 2010/03/13 10:48:36, Sam wrote > ignore the comment ...
10 years, 9 months ago (2010-03-17 18:31:27 UTC) #20
tfarina (gmail-do not use)
I think there is a typo at the BUG= description, the number doesn't point to ...
10 years, 9 months ago (2010-03-17 18:50:49 UTC) #21
Lei Zhang
LGTM, since the CL is pretty trivial now. Can you write a better description for ...
10 years, 8 months ago (2010-04-22 21:19:24 UTC) #22
Shriram
Done. Is that ok ? On 2010/04/22 21:19:24, Lei Zhang wrote:
10 years, 8 months ago (2010-04-25 10:54:49 UTC) #23
Lei Zhang
On 2010/04/25 10:54:49, Sam wrote: > Done. Is that ok ? No, I don't think ...
10 years, 8 months ago (2010-04-26 19:55:07 UTC) #24
Shriram
On 2010/04/26 19:55:07, Lei Zhang wrote: Ok. As this's a codereview, isn't the BUG=none the ...
10 years, 8 months ago (2010-04-27 03:18:40 UTC) #25
tfarina (gmail-do not use)
On 2010/04/27 03:18:40, Sam wrote: > On 2010/04/26 19:55:07, Lei Zhang wrote: > > Ok. ...
10 years, 8 months ago (2010-04-27 03:56:10 UTC) #26
Shriram
On 2010/04/27 03:56:10, tfarina wrote: I added some more details in the description, as what ...
10 years, 8 months ago (2010-04-27 07:51:10 UTC) #27
tfarina (gmail-do not use)
On 2010/04/27 07:51:10, Sam wrote: > On 2010/04/27 03:56:10, tfarina wrote: > > I added ...
10 years, 8 months ago (2010-04-27 15:24:13 UTC) #28
Shriram
10 years, 8 months ago (2010-04-27 15:32:21 UTC) #29
may be this could be ignored , and this cl be merged/combined with a much
larger cl

On Tue, Apr 27, 2010 at 8:54 PM, <thiago.farina@gmail.com> wrote:

> On 2010/04/27 07:51:10, Sam wrote:
>
>> On 2010/04/27 03:56:10, tfarina wrote:
>>
>
> I added some more details in the description, as what needs to be changed
>> or
>> fixed as per one of the comments on this issue.
>> As this really isn't a bug, no bug number to include in the description.
>>
>
> Alright, but IMO, just a *nit* can't be a justification for a patch.
>
>
> http://codereview.chromium.org/413003/show
>

Powered by Google App Engine
This is Rietveld 408576698