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

Issue 4928002: Changing the installer switches from wchar_t[] to char[].... (Closed)

Created:
10 years, 1 month ago by tommi (sloooow) - chröme
Modified:
9 years, 7 months ago
Reviewers:
robertshield, evanm
CC:
chromium-reviews, Paweł Hajdan Jr., brettw-cc_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

Changing the installer switches from wchar_t[] to char[]. Because of this I'm also refactoring some code that before was using wstring to build command lines by hand instead of using the CommandLine class. Now we use CommandLine. To get this to work correctly, I also needed to fix CommandLine::AppendArguments so I added a little test for it. TEST=There should be no changes in functionality. Run all installer tests. BUG=61609 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=66088

Patch Set 1 #

Total comments: 4

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 11

Patch Set 7 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+201 lines, -180 lines) Patch
M base/command_line.cc View 1 2 3 4 5 6 2 chunks +16 lines, -3 lines 0 comments Download
M base/command_line_unittest.cc View 1 2 3 4 5 6 2 chunks +26 lines, -1 line 0 comments Download
M chrome/browser/browser_main_win.cc View 1 2 3 4 5 1 chunk +6 lines, -6 lines 0 comments Download
M chrome/installer/setup/install.cc View 1 2 3 4 5 3 chunks +19 lines, -28 lines 0 comments Download
M chrome/installer/setup/setup_main.cc View 1 2 3 4 5 4 chunks +5 lines, -8 lines 0 comments Download
M chrome/installer/setup/uninstall.h View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M chrome/installer/setup/uninstall.cc View 1 2 3 4 5 2 chunks +8 lines, -12 lines 0 comments Download
M chrome/installer/util/google_chrome_distribution.cc View 1 2 3 4 5 3 chunks +7 lines, -9 lines 0 comments Download
M chrome/installer/util/install_util.h View 1 2 3 4 5 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/installer/util/install_util.cc View 1 2 3 4 5 6 2 chunks +18 lines, -5 lines 0 comments Download
M chrome/installer/util/master_preferences.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/installer/util/master_preferences_unittest.cc View 2 chunks +26 lines, -33 lines 0 comments Download
M chrome/installer/util/shell_util.cc View 1 2 3 4 5 6 2 chunks +12 lines, -15 lines 0 comments Download
M chrome/installer/util/util_constants.h View 1 2 3 4 5 1 chunk +26 lines, -26 lines 0 comments Download
M chrome/installer/util/util_constants.cc View 1 2 3 4 5 6 4 chunks +27 lines, -27 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
tommi (sloooow) - chröme
evanm: Could you please take a look at the CommandLine change?
10 years, 1 month ago (2010-11-12 23:57:42 UTC) #1
robertshield
lg, some nits http://codereview.chromium.org/4928002/diff/71001/base/command_line_unittest.cc File base/command_line_unittest.cc (right): http://codereview.chromium.org/4928002/diff/71001/base/command_line_unittest.cc#newcode168 base/command_line_unittest.cc:168: EXPECT_EQ(cl1.command_line_string(), cl2.command_line_string()); Could you also test ...
10 years, 1 month ago (2010-11-14 15:21:31 UTC) #2
evanm
http://codereview.chromium.org/4928002/diff/1/base/command_line_unittest.cc File base/command_line_unittest.cc (right): http://codereview.chromium.org/4928002/diff/1/base/command_line_unittest.cc#newcode159 base/command_line_unittest.cc:159: // command line strings are equal. Maybe change the ...
10 years, 1 month ago (2010-11-14 19:15:39 UTC) #3
evanm
http://codereview.chromium.org/4928002/diff/1/base/command_line_unittest.cc File base/command_line_unittest.cc (right): http://codereview.chromium.org/4928002/diff/1/base/command_line_unittest.cc#newcode166 base/command_line_unittest.cc:166: cl2.AppendArguments(cl1, true); On 2010/11/14 19:15:39, evanm wrote: > Shouldn't ...
10 years, 1 month ago (2010-11-14 19:16:18 UTC) #4
tommi (sloooow) - chröme
thanks. changes uploaded. http://codereview.chromium.org/4928002/diff/1/base/command_line_unittest.cc File base/command_line_unittest.cc (right): http://codereview.chromium.org/4928002/diff/1/base/command_line_unittest.cc#newcode159 base/command_line_unittest.cc:159: // command line strings are equal. ...
10 years, 1 month ago (2010-11-14 21:28:07 UTC) #5
robertshield
10 years, 1 month ago (2010-11-14 21:40:17 UTC) #6
LGTM

http://codereview.chromium.org/4928002/diff/71001/chrome/installer/util/insta...
File chrome/installer/util/install_util.cc (right):

http://codereview.chromium.org/4928002/diff/71001/chrome/installer/util/insta...
chrome/installer/util/install_util.cc:45: if (params[0] == '"') {
On 2010/11/14 21:28:07, tommi wrote:
> On 2010/11/14 15:21:31, robertshield wrote:
> > Add a comment here along the lines of "include the quotes in the program
> > component". When I first glanced at it, I thought it would try to remove the
> > quotes.
> 
> Not sure I follow... this part does remove the quotes.
> I start by checking if the command line starts with a quote, if it does, then
it
> removes 2 more characters and DCHECKs that the part being removed matches the
> program path which is being removed.

uh, yeah, sorry I misread it earlier. pebkac.

Powered by Google App Engine
This is Rietveld 408576698