diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-30 02:14:22 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-30 02:14:22 +0000 |
commit | d420c31e107cd932582a4a8add0ce2676e4b52da (patch) | |
tree | 0e666287eac5bbd12cc709a932a84d4bb852964b /base/command_line.h | |
parent | f6215a232664e488b9c6c66e191c6507d377edcb (diff) | |
download | chromium_src-d420c31e107cd932582a4a8add0ce2676e4b52da.zip chromium_src-d420c31e107cd932582a4a8add0ce2676e4b52da.tar.gz chromium_src-d420c31e107cd932582a4a8add0ce2676e4b52da.tar.bz2 |
Add an AppendSwitchASCII to CommandLine, and convert a test to it.
I'm removing all the AppendSwitchWithValue() users due to wstrings,
and this is one caller. Since fixing this one caller requires
touching many files, I thought I'd isolate this change from
the other WithValue->ASCII conversions.
Review URL: http://codereview.chromium.org/2878065
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54257 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/command_line.h')
-rw-r--r-- | base/command_line.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/base/command_line.h b/base/command_line.h index 89df392..ae05021 100644 --- a/base/command_line.h +++ b/base/command_line.h @@ -162,14 +162,17 @@ class CommandLine { void AppendSwitchPath(const std::string& switch_string, const FilePath& path); void AppendSwitchNative(const std::string& switch_string, const StringType& value); + void AppendSwitchASCII(const std::string& switch_string, + const std::string& value); // Append a switch and value to the command line. // TODO(evanm): remove all AppendSwitchWithValue() instances. - // TODO(evanm): add an *ASCII() version. void AppendSwitchWithValue(const std::string& switch_string, const std::wstring& value_string); void AppendSwitchWithValue(const std::string& switch_string, - const std::string& value_string); + const std::string& value_string) { + AppendSwitchASCII(switch_string, value_string); + } // Append a loose value to the command line. void AppendLooseValue(const std::wstring& value); |