Chromium Code Reviews| Index: net/dns/dns_client.cc |
| diff --git a/net/dns/dns_client.cc b/net/dns/dns_client.cc |
| index b9c2279a140c2635dc1eb8120ee3fa0f01e86d2e..8673620cb67d1b593f7f11eddcfd644d6d22e326 100644 |
| --- a/net/dns/dns_client.cc |
| +++ b/net/dns/dns_client.cc |
| @@ -10,6 +10,7 @@ |
| #include "net/dns/address_sorter.h" |
| #include "net/dns/dns_config_service.h" |
| #include "net/dns/dns_session.h" |
| +#include "net/dns/dns_socket_pool.h" |
| #include "net/dns/dns_transaction.h" |
| #include "net/socket/client_socket_factory.h" |
| @@ -27,8 +28,9 @@ class DnsClientImpl : public DnsClient { |
| factory_.reset(); |
| session_ = NULL; |
| if (config.IsValid()) { |
| + ClientSocketFactory* factory = ClientSocketFactory::GetDefaultFactory(); |
| session_ = new DnsSession(config, |
| - ClientSocketFactory::GetDefaultFactory(), |
| + DnsSocketPool::CreateDefault(factory).Pass(), |
|
szym
2012/09/26 11:16:12
You don't need Pass() here. It's an Rvalue.
Deprecated (see juliatuttle)
2012/09/26 20:44:50
Done.
|
| base::Bind(&base::RandInt), |
| net_log_); |
| factory_ = DnsTransactionFactory::CreateFactory(session_); |