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

Unified Diff: device/bluetooth/bluetooth_socket_win.cc

Issue 2815993002: Adds a method to TCPServerSocket to adopt a socket. (Closed)
Patch Set: Refined GetSocketDescriptor per review. Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/socket/socket_posix.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_socket_win.cc
diff --git a/device/bluetooth/bluetooth_socket_win.cc b/device/bluetooth/bluetooth_socket_win.cc
index 0db3156a1e7612faa57812f3775179ec49f69fd0..a5793295e0a674da3b94d0595f09045f9e352174 100644
--- a/device/bluetooth/bluetooth_socket_win.cc
+++ b/device/bluetooth/bluetooth_socket_win.cc
@@ -263,7 +263,7 @@ void BluetoothSocketWin::DoListen(
// is called on |socket_fd| directly.
std::unique_ptr<net::TCPSocket> scoped_socket(
new net::TCPSocket(NULL, NULL, net::NetLogSource()));
- scoped_socket->AdoptListenSocket(socket_fd);
+ scoped_socket->AdoptUnconnectedSocket(socket_fd);
SOCKADDR_BTH sa;
struct sockaddr* sock_addr = reinterpret_cast<struct sockaddr*>(&sa);
« no previous file with comments | « no previous file | net/socket/socket_posix.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698