summaryrefslogtreecommitdiffstats
path: root/base/command_line.h
diff options
context:
space:
mode:
authorgab@chromium.org <gab@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-29 21:31:31 +0000
committergab@chromium.org <gab@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-29 21:31:31 +0000
commit45f982ef3e2267388089826ca1c875f7436f7e82 (patch)
tree03a7e390ab53d311c4438898fca2843b2421757c /base/command_line.h
parent3642e2dc31e87fb1445f586acd8707732042bdf2 (diff)
downloadchromium_src-45f982ef3e2267388089826ca1c875f7436f7e82.zip
chromium_src-45f982ef3e2267388089826ca1c875f7436f7e82.tar.gz
chromium_src-45f982ef3e2267388089826ca1c875f7436f7e82.tar.bz2
Extract arguments reconstruction logic out of GetCommandLineString() into GetArgumentsString().
BUG=To get arguments we had to GetCommandLineString() and piece out the program: http://code.google.com/searchframe#OAMlx_jo-ck/src/chrome/installer/util/install_util.cc&exact_package=chromium&q=GetCommandLineString&type=cs&l=125 TEST=base_unittests.exe --gtest_filter=CommandLineTest* Review URL: https://chromiumcodereview.appspot.com/11305010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164740 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/command_line.h')
-rw-r--r--base/command_line.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/base/command_line.h b/base/command_line.h
index 37cc71b..7d8627f 100644
--- a/base/command_line.h
+++ b/base/command_line.h
@@ -79,9 +79,15 @@ class BASE_EXPORT CommandLine {
void InitFromArgv(const StringVector& argv);
// Constructs and returns the represented command line string.
- // CAUTION! This should be avoided because quoting behavior is unclear.
+ // CAUTION! This should be avoided on POSIX because quoting behavior is
+ // unclear.
StringType GetCommandLineString() const;
+ // Constructs and returns the represented arguments string.
+ // CAUTION! This should be avoided on POSIX because quoting behavior is
+ // unclear.
+ StringType GetArgumentsString() const;
+
// Returns the original command line string as a vector of strings.
const StringVector& argv() const { return argv_; }