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

Unified Diff: net/dns/mojo_host_type_converters.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/mojo_host_resolver_impl_unittest.cc ('k') | net/dns/record_parsed.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/mojo_host_type_converters.cc
diff --git a/net/dns/mojo_host_type_converters.cc b/net/dns/mojo_host_type_converters.cc
index 253d8c9f8979c2ab4f644931d820bf75a9386eff..07dfe4df23f429c0a4ff7d0a93f870422c3a3aec 100644
--- a/net/dns/mojo_host_type_converters.cc
+++ b/net/dns/mojo_host_type_converters.cc
@@ -4,6 +4,8 @@
#include "net/dns/mojo_host_type_converters.h"
+#include <utility>
+
#include "mojo/public/cpp/bindings/type_converter.h"
#include "net/base/address_list.h"
#include "net/base/net_util.h"
@@ -64,7 +66,7 @@ TypeConverter<net::interfaces::HostResolverRequestInfoPtr,
result->port = obj.port();
result->address_family = net::AddressFamilyToMojo(obj.address_family());
result->is_my_ip_address = obj.is_my_ip_address();
- return result.Pass();
+ return result;
}
// static
@@ -76,9 +78,9 @@ TypeConverter<net::interfaces::AddressListPtr, net::AddressList>::Convert(
net::interfaces::IPEndPointPtr ep(net::interfaces::IPEndPoint::New());
ep->port = endpoint.port();
ep->address = mojo::Array<uint8_t>::From(endpoint.address());
- result->addresses.push_back(ep.Pass());
+ result->addresses.push_back(std::move(ep));
}
- return result.Pass();
+ return result;
}
// static
« no previous file with comments | « net/dns/mojo_host_resolver_impl_unittest.cc ('k') | net/dns/record_parsed.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698