summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-07 20:32:57 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-07 20:32:57 +0000
commit10d9b91414c76b3f6654b61a881c817f85cf0b88 (patch)
tree18696e909d097835d41d54b879e0f7dec71863f3 /net
parentdcfd29f49e33a782aebe4194af30d707c61c6264 (diff)
downloadchromium_src-10d9b91414c76b3f6654b61a881c817f85cf0b88.zip
chromium_src-10d9b91414c76b3f6654b61a881c817f85cf0b88.tar.gz
chromium_src-10d9b91414c76b3f6654b61a881c817f85cf0b88.tar.bz2
Make fetch_client work on POSIX.
TEST=none BUG=none Review URL: http://codereview.chromium.org/164107 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22775 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-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());