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

Unified Diff: device/bluetooth/bluetooth_socket_win.cc

Issue 2333923004: Extracting NetLog inner classes into their own classes. (Closed)
Patch Set: Some nit fixes and better, impl-agnostic naming of net_log_parameters_callback_typedef.h -> net/log… Created 4 years, 2 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
Index: device/bluetooth/bluetooth_socket_win.cc
diff --git a/device/bluetooth/bluetooth_socket_win.cc b/device/bluetooth/bluetooth_socket_win.cc
index f6a5eeb6ac6308aa6bf7c5103dc34c7ce43197e0..0db3156a1e7612faa57812f3775179ec49f69fd0 100644
--- a/device/bluetooth/bluetooth_socket_win.cc
+++ b/device/bluetooth/bluetooth_socket_win.cc
@@ -26,6 +26,7 @@
#include "net/base/net_errors.h"
#include "net/base/winsock_init.h"
#include "net/base/winsock_util.h"
+#include "net/log/net_log_source.h"
namespace {
@@ -194,7 +195,7 @@ void BluetoothSocketWin::DoConnect(
}
std::unique_ptr<net::TCPSocket> scoped_socket(
- new net::TCPSocket(NULL, NULL, net::NetLog::Source()));
+ new net::TCPSocket(NULL, NULL, net::NetLogSource()));
net::EnsureWinsockInit();
SOCKET socket_fd = socket(AF_BTH, SOCK_STREAM, BTHPROTO_RFCOMM);
SOCKADDR_BTH sa;
@@ -261,7 +262,7 @@ void BluetoothSocketWin::DoListen(
// TCPSocket methods that involve address could not be called. So bind()
// is called on |socket_fd| directly.
std::unique_ptr<net::TCPSocket> scoped_socket(
- new net::TCPSocket(NULL, NULL, net::NetLog::Source()));
+ new net::TCPSocket(NULL, NULL, net::NetLogSource()));
scoped_socket->AdoptListenSocket(socket_fd);
SOCKADDR_BTH sa;

Powered by Google App Engine
This is Rietveld 408576698