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

Side by Side Diff: net/dns/mdns_client.cc

Issue 1545233002: Convert Pass()→std::move() in //net (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 months 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 unified diff | Download patch
« no previous file with comments | « net/dns/mdns_cache_unittest.cc ('k') | net/dns/mdns_client_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/dns/mdns_client.h" 5 #include "net/dns/mdns_client.h"
6 6
7 #include "net/base/net_errors.h" 7 #include "net/base/net_errors.h"
8 #include "net/base/net_util.h" 8 #include "net/base/net_util.h"
9 #include "net/base/network_interfaces.h" 9 #include "net/base/network_interfaces.h"
10 #include "net/dns/dns_protocol.h" 10 #include "net/dns/dns_protocol.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 scoped_ptr<DatagramServerSocket> socket( 91 scoped_ptr<DatagramServerSocket> socket(
92 new UDPServerSocket(NULL, NetLog::Source())); 92 new UDPServerSocket(NULL, NetLog::Source()));
93 93
94 IPEndPoint multicast_addr = GetMDnsIPEndPoint(address_family); 94 IPEndPoint multicast_addr = GetMDnsIPEndPoint(address_family);
95 int rv = Bind(multicast_addr, interface_index, socket.get()); 95 int rv = Bind(multicast_addr, interface_index, socket.get());
96 if (rv != OK) { 96 if (rv != OK) {
97 socket.reset(); 97 socket.reset();
98 VLOG(1) << "Bind failed, endpoint=" << multicast_addr.ToStringWithoutPort() 98 VLOG(1) << "Bind failed, endpoint=" << multicast_addr.ToStringWithoutPort()
99 << ", error=" << rv; 99 << ", error=" << rv;
100 } 100 }
101 return socket.Pass(); 101 return socket;
102 } 102 }
103 103
104 } // namespace net 104 } // namespace net
OLDNEW
« no previous file with comments | « net/dns/mdns_cache_unittest.cc ('k') | net/dns/mdns_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698