summaryrefslogtreecommitdiffstats
path: root/net/tools
diff options
context:
space:
mode:
Diffstat (limited to 'net/tools')
-rw-r--r--net/tools/fetch/fetch_client.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/tools/fetch/fetch_client.cc b/net/tools/fetch/fetch_client.cc
index 63083c4..3a6d662 100644
--- a/net/tools/fetch/fetch_client.cc
+++ b/net/tools/fetch/fetch_client.cc
@@ -113,7 +113,7 @@ int main(int argc, char**argv) {
StatsTable table("fetchclient", 50, 1000);
table.set_current(&table);
- CommandLine::Init(0, NULL);
+ CommandLine::Init(argc, argv);
const CommandLine& parsed_command_line = *CommandLine::ForCurrentProcess();
std::string url = WideToASCII(parsed_command_line.GetSwitchValue(L"url"));
if (!url.length())
@@ -125,7 +125,7 @@ int main(int argc, char**argv) {
bool use_cache = parsed_command_line.HasSwitch(L"use-cache");
// Do work here.
- MessageLoop loop;
+ MessageLoop loop(MessageLoop::TYPE_IO);
scoped_refptr<net::HostResolver> host_resolver(
net::CreateSystemHostResolver());