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

Unified Diff: net/dns/mojo_host_resolver_impl.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/mock_mdns_socket_factory.cc ('k') | net/dns/mojo_host_resolver_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/mojo_host_resolver_impl.cc
diff --git a/net/dns/mojo_host_resolver_impl.cc b/net/dns/mojo_host_resolver_impl.cc
index ac2fe8bc9f6e1442c3fee11416cf9fa3152bea49..bf49c99ff1bfe0c00979a3adcc42268e485a2f52 100644
--- a/net/dns/mojo_host_resolver_impl.cc
+++ b/net/dns/mojo_host_resolver_impl.cc
@@ -4,6 +4,8 @@
#include "net/dns/mojo_host_resolver_impl.h"
+#include <utility>
+
#include "base/stl_util.h"
#include "net/base/address_list.h"
#include "net/base/net_errors.h"
@@ -59,7 +61,7 @@ void MojoHostResolverImpl::Resolve(
DCHECK(thread_checker_.CalledOnValidThread());
Job* job = new Job(this, resolver_,
request_info->To<net::HostResolver::RequestInfo>(),
- net_log_, client.Pass());
+ net_log_, std::move(client));
pending_jobs_.insert(job);
job->Start();
}
@@ -81,7 +83,7 @@ MojoHostResolverImpl::Job::Job(
resolver_(resolver),
request_info_(request_info),
net_log_(net_log),
- client_(client.Pass()),
+ client_(std::move(client)),
handle_(nullptr) {
client_.set_connection_error_handler(base::Bind(
&MojoHostResolverImpl::Job::OnConnectionError, base::Unretained(this)));
« no previous file with comments | « net/dns/mock_mdns_socket_factory.cc ('k') | net/dns/mojo_host_resolver_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698