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

Issue 2778173003: base: Support command line wrappers with quoted arguments (Closed)

Created:
3 years, 8 months ago by Sami
Modified:
3 years, 8 months ago
Reviewers:
gab
CC:
chromium-reviews, vmpstr+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

base: Support command line wrappers with quoted arguments Command line wrappers (e.g., --renderer-cmd-prefix) were previously split into individual arguments purely based on whitespace. This fails if the prefix has arguments with embedded whitespace (e.g., gdb -ex "set height 0"). This patch fixes the issue by tokenizing the prefix based on whitespace while using ' and " as quote characters. BUG=546953 Review-Url: https://codereview.chromium.org/2778173003 Cr-Commit-Position: refs/heads/master@{#460443} Committed: https://chromium.googlesource.com/chromium/src/+/d851aa1e5290a777a7a82afdbe6c27df2cf82bf2

Patch Set 1 #

Total comments: 6

Patch Set 2 : Windows fixes #

Patch Set 3 : More windows fixes #

Patch Set 4 : Yet more windows fixes #

Total comments: 6

Patch Set 5 : Review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -5 lines) Patch
M base/command_line.cc View 1 2 3 4 2 chunks +10 lines, -5 lines 0 comments Download
M base/command_line_unittest.cc View 1 2 3 1 chunk +31 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (22 generated)
Sami
3 years, 8 months ago (2017-03-28 16:35:15 UTC) #3
gab
COol thanks https://codereview.chromium.org/2778173003/diff/1/base/command_line.cc File base/command_line.cc (right): https://codereview.chromium.org/2778173003/diff/1/base/command_line.cc#newcode416 base/command_line.cc:416: StringTokenizer tokenizer(wrapper, " "); This won't compile ...
3 years, 8 months ago (2017-03-28 17:04:00 UTC) #6
Sami
Thanks! https://codereview.chromium.org/2778173003/diff/1/base/command_line.cc File base/command_line.cc (right): https://codereview.chromium.org/2778173003/diff/1/base/command_line.cc#newcode416 base/command_line.cc:416: StringTokenizer tokenizer(wrapper, " "); On 2017/03/28 17:03:59, gab ...
3 years, 8 months ago (2017-03-28 17:54:09 UTC) #13
gab
lgtm w/ nits https://codereview.chromium.org/2778173003/diff/60001/base/command_line.cc File base/command_line.cc (right): https://codereview.chromium.org/2778173003/diff/60001/base/command_line.cc#newcode417 base/command_line.cc:417: StringTokenizerT<StringType, CommandLine::StringType::const_iterator>; can we forgo the ...
3 years, 8 months ago (2017-03-28 19:31:46 UTC) #18
Sami
https://codereview.chromium.org/2778173003/diff/60001/base/command_line.cc File base/command_line.cc (right): https://codereview.chromium.org/2778173003/diff/60001/base/command_line.cc#newcode417 base/command_line.cc:417: StringTokenizerT<StringType, CommandLine::StringType::const_iterator>; On 2017/03/28 19:31:46, gab wrote: > can ...
3 years, 8 months ago (2017-03-29 09:17:28 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2778173003/80001
3 years, 8 months ago (2017-03-29 09:17:48 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/182314)
3 years, 8 months ago (2017-03-29 12:41:29 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2778173003/80001
3 years, 8 months ago (2017-03-29 16:17:33 UTC) #28
commit-bot: I haz the power
3 years, 8 months ago (2017-03-29 17:39:37 UTC) #31
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/d851aa1e5290a777a7a82afdbe6c...

Powered by Google App Engine
This is Rietveld 408576698