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

Unified Diff: net/dns/mapped_host_resolver.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/host_resolver_mojo_unittest.cc ('k') | net/dns/mapped_host_resolver_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/mapped_host_resolver.cc
diff --git a/net/dns/mapped_host_resolver.cc b/net/dns/mapped_host_resolver.cc
index fedc05f0072eb3abb91265681e35f29256a7ec1b..1511db4a317b69ba95379c0b9904f04c7e11360a 100644
--- a/net/dns/mapped_host_resolver.cc
+++ b/net/dns/mapped_host_resolver.cc
@@ -4,6 +4,8 @@
#include "net/dns/mapped_host_resolver.h"
+#include <utility>
+
#include "base/strings/string_util.h"
#include "net/base/host_port_pair.h"
#include "net/base/net_errors.h"
@@ -12,8 +14,7 @@
namespace net {
MappedHostResolver::MappedHostResolver(scoped_ptr<HostResolver> impl)
- : impl_(impl.Pass()) {
-}
+ : impl_(std::move(impl)) {}
MappedHostResolver::~MappedHostResolver() {
}
« no previous file with comments | « net/dns/host_resolver_mojo_unittest.cc ('k') | net/dns/mapped_host_resolver_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698