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

Unified Diff: net/dns/mock_mdns_socket_factory.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/mdns_client_impl.cc ('k') | net/dns/mojo_host_resolver_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/mock_mdns_socket_factory.cc
diff --git a/net/dns/mock_mdns_socket_factory.cc b/net/dns/mock_mdns_socket_factory.cc
index 354992b4ec00adbe088868cf46e330a95e21b2d9..ae46d2f428d654f9ca75ca3ceb19d703e529564b 100644
--- a/net/dns/mock_mdns_socket_factory.cc
+++ b/net/dns/mock_mdns_socket_factory.cc
@@ -2,13 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "net/dns/mock_mdns_socket_factory.h"
+
#include <algorithm>
+#include <utility>
#include "base/location.h"
#include "base/single_thread_task_runner.h"
#include "base/thread_task_runner_handle.h"
#include "net/base/net_errors.h"
-#include "net/dns/mock_mdns_socket_factory.h"
using testing::_;
using testing::Invoke;
@@ -86,7 +88,7 @@ void MockMDnsSocketFactory::CreateSocket(
this,
&MockMDnsSocketFactory::RecvFromInternal));
- sockets->push_back(new_socket.Pass());
+ sockets->push_back(std::move(new_socket));
}
void MockMDnsSocketFactory::SimulateReceive(const uint8_t* packet, int size) {
« no previous file with comments | « net/dns/mdns_client_impl.cc ('k') | net/dns/mojo_host_resolver_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698