Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1788)

Unified Diff: net/dns/dns_client.cc

Issue 1545233002: Convert Pass()→std::move() in //net (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/dns/address_sorter_posix.cc ('k') | net/dns/dns_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
}
}
« no previous file with comments | « net/dns/address_sorter_posix.cc ('k') | net/dns/dns_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698