summaryrefslogtreecommitdiffstats
path: root/net/tools
diff options
context:
space:
mode:
authortony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-06 19:55:16 +0000
committertony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-06 19:55:16 +0000
commitc4e52f0d8fa148f543d3e7b2562164e9bf5605aa (patch)
tree86a455dd54d4542026ff3059ac939dc809a09b26 /net/tools
parent2fd94bbeefa87a83a96c65ff998add7d7fb0f908 (diff)
downloadchromium_src-c4e52f0d8fa148f543d3e7b2562164e9bf5605aa.zip
chromium_src-c4e52f0d8fa148f543d3e7b2562164e9bf5605aa.tar.gz
chromium_src-c4e52f0d8fa148f543d3e7b2562164e9bf5605aa.tar.bz2
Use GetSwitchValueASCII.
BUG=24672 TEST=None Original patch by Thiago Farina <thiago.farina@gmail.com> at http://codereview.chromium.org/296004 Review URL: http://codereview.chromium.org/373013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31269 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/tools')
-rw-r--r--net/tools/fetch/fetch_client.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/net/tools/fetch/fetch_client.cc b/net/tools/fetch/fetch_client.cc
index f40c9e7..07be9c9 100644
--- a/net/tools/fetch/fetch_client.cc
+++ b/net/tools/fetch/fetch_client.cc
@@ -120,13 +120,12 @@ int main(int argc, char**argv) {
CommandLine::Init(argc, argv);
const CommandLine& parsed_command_line = *CommandLine::ForCurrentProcess();
- std::string url = WideToASCII(parsed_command_line.GetSwitchValue("url"));
+ std::string url = parsed_command_line.GetSwitchValueASCII("url");
if (!url.length())
usage(argv[0]);
int client_limit = 1;
if (parsed_command_line.HasSwitch("n"))
- StringToInt(WideToASCII(parsed_command_line.GetSwitchValue("n")),
- &client_limit);
+ StringToInt(parsed_command_line.GetSwitchValueASCII("n"), &client_limit);
bool use_cache = parsed_command_line.HasSwitch("use-cache");
// Do work here.