| Index: net/dns/dns_client.cc
|
| diff --git a/net/dns/dns_client.cc b/net/dns/dns_client.cc
|
| index 062894ad703b88e7e2f7b30bc113a18ca2f48c52..a9531523ae348d9e6756d845d48f7a38858a702c 100644
|
| --- a/net/dns/dns_client.cc
|
| +++ b/net/dns/dns_client.cc
|
| @@ -4,6 +4,8 @@
|
|
|
| #include "net/dns/dns_client.h"
|
|
|
| +#include <utility>
|
| +
|
| #include "base/bind.h"
|
| #include "base/rand_util.h"
|
| #include "net/dns/address_sorter.h"
|
| @@ -32,10 +34,8 @@ class DnsClientImpl : public DnsClient {
|
| scoped_ptr<DnsSocketPool> socket_pool(
|
| config.randomize_ports ? DnsSocketPool::CreateDefault(factory)
|
| : DnsSocketPool::CreateNull(factory));
|
| - session_ = new DnsSession(config,
|
| - socket_pool.Pass(),
|
| - base::Bind(&base::RandInt),
|
| - net_log_);
|
| + session_ = new DnsSession(config, std::move(socket_pool),
|
| + base::Bind(&base::RandInt), net_log_);
|
| factory_ = DnsTransactionFactory::CreateFactory(session_.get());
|
| }
|
| }
|
|
|