summaryrefslogtreecommitdiffstats
path: root/net/tools/fetch/fetch_client.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/tools/fetch/fetch_client.cc')
-rw-r--r--net/tools/fetch/fetch_client.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/tools/fetch/fetch_client.cc b/net/tools/fetch/fetch_client.cc
index 68022f2..783c91d 100644
--- a/net/tools/fetch/fetch_client.cc
+++ b/net/tools/fetch/fetch_client.cc
@@ -127,14 +127,14 @@ int main(int argc, char**argv) {
// Do work here.
MessageLoop loop;
- net::HostResolver host_resolver;
+ scoped_refptr<net::HostResolver> host_resolver(new net::HostResolver);
scoped_ptr<net::ProxyService> proxy_service(net::ProxyService::CreateNull());
net::HttpTransactionFactory* factory = NULL;
if (use_cache) {
- factory = new net::HttpCache(&host_resolver, proxy_service.get(), 0);
+ factory = new net::HttpCache(host_resolver, proxy_service.get(), 0);
} else {
factory = new net::HttpNetworkLayer(
- net::ClientSocketFactory::GetDefaultFactory(), &host_resolver,
+ net::ClientSocketFactory::GetDefaultFactory(), host_resolver,
proxy_service.get());
}