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

Unified Diff: net/tools/fetch/fetch_client.cc

Issue 270062: Use ASCII strings for switch names. (Closed)
Patch Set: victory Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/tools/dump_cache/dump_cache.cc ('k') | net/tools/fetch/fetch_server.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/fetch/fetch_client.cc
diff --git a/net/tools/fetch/fetch_client.cc b/net/tools/fetch/fetch_client.cc
index 7a3dea7effa3bd80e59bc714f64d7b3bf913c6cb..4c4ac469cd786de41727daaef56b2f61ecc80310 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();
« no previous file with comments | « net/tools/dump_cache/dump_cache.cc ('k') | net/tools/fetch/fetch_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698