summaryrefslogtreecommitdiffstats
path: root/net/tools/fetch
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-13 02:07:25 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-13 02:07:25 +0000
commitb7e0a2a3ccf5aceb891d5e1dfaf9db1bbaaa5f78 (patch)
treed723b8556ad386a0b8a6e999e3a842e0bfe6f9b0 /net/tools/fetch
parent1976d41ac728fcceb30f2df3c243cb7417f538f1 (diff)
downloadchromium_src-b7e0a2a3ccf5aceb891d5e1dfaf9db1bbaaa5f78.zip
chromium_src-b7e0a2a3ccf5aceb891d5e1dfaf9db1bbaaa5f78.tar.gz
chromium_src-b7e0a2a3ccf5aceb891d5e1dfaf9db1bbaaa5f78.tar.bz2
Use ASCII strings for switch names.
Review URL: http://codereview.chromium.org/270062 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28779 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/tools/fetch')
-rw-r--r--net/tools/fetch/fetch_client.cc10
-rw-r--r--net/tools/fetch/fetch_server.cc2
2 files changed, 6 insertions, 6 deletions
diff --git a/net/tools/fetch/fetch_client.cc b/net/tools/fetch/fetch_client.cc
index 7a3dea7..4c4ac46 100644
--- a/net/tools/fetch/fetch_client.cc
+++ b/net/tools/fetch/fetch_client.cc
@@ -120,14 +120,14 @@ 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(L"url"));
+ std::string url = WideToASCII(parsed_command_line.GetSwitchValue("url"));
if (!url.length())
usage(argv[0]);
int client_limit = 1;
- if (parsed_command_line.HasSwitch(L"n"))
- StringToInt(WideToASCII(parsed_command_line.GetSwitchValue(L"n")),
+ if (parsed_command_line.HasSwitch("n"))
+ StringToInt(WideToASCII(parsed_command_line.GetSwitchValue("n")),
&client_limit);
- bool use_cache = parsed_command_line.HasSwitch(L"use-cache");
+ bool use_cache = parsed_command_line.HasSwitch("use-cache");
// Do work here.
MessageLoop loop(MessageLoop::TYPE_IO);
@@ -184,7 +184,7 @@ int main(int argc, char**argv) {
printf("Bandwidth : %.2f%s\n", bps, units);
}
- if (parsed_command_line.HasSwitch(L"stats")) {
+ if (parsed_command_line.HasSwitch("stats")) {
// Dump the stats table.
printf("<stats>\n");
int counter_max = table.GetMaxCounters();
diff --git a/net/tools/fetch/fetch_server.cc b/net/tools/fetch/fetch_server.cc
index eab8851..085bd46 100644
--- a/net/tools/fetch/fetch_server.cc
+++ b/net/tools/fetch/fetch_server.cc
@@ -39,7 +39,7 @@ int main(int argc, char**argv) {
HttpServer server("", 80); // TODO(mbelshe): make port configurable
MessageLoop::current()->Run();
- if (parsed_command_line.HasSwitch(L"stats")) {
+ if (parsed_command_line.HasSwitch("stats")) {
// Dump the stats table.
printf("<stats>\n");
int counter_max = table.GetMaxCounters();