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

Unified Diff: device/bluetooth/bluetooth_socket_win.cc

Issue 397123002: Cleanup: Drop some unnecessary params from the BluetoothSocketNet constructor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 5 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 | « device/bluetooth/bluetooth_socket_win.h ('k') | no next file » | 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 6ca63535a3ebe2d621f15521ad0a7d87207ec702..283c63eb6450143466a2e58efe9135a594cb86ba 100644
--- a/device/bluetooth/bluetooth_socket_win.cc
+++ b/device/bluetooth/bluetooth_socket_win.cc
@@ -75,21 +75,17 @@ struct BluetoothSocketWin::ServiceRegData {
scoped_refptr<BluetoothSocketWin>
BluetoothSocketWin::CreateBluetoothSocket(
scoped_refptr<base::SequencedTaskRunner> ui_task_runner,
- scoped_refptr<device::BluetoothSocketThread> socket_thread,
- net::NetLog* net_log,
- const net::NetLog::Source& source) {
+ scoped_refptr<device::BluetoothSocketThread> socket_thread) {
DCHECK(ui_task_runner->RunsTasksOnCurrentThread());
return make_scoped_refptr(
- new BluetoothSocketWin(ui_task_runner, socket_thread, net_log, source));
+ new BluetoothSocketWin(ui_task_runner, socket_thread));
}
BluetoothSocketWin::BluetoothSocketWin(
scoped_refptr<base::SequencedTaskRunner> ui_task_runner,
- scoped_refptr<BluetoothSocketThread> socket_thread,
- net::NetLog* net_log,
- const net::NetLog::Source& source)
- : BluetoothSocketNet(ui_task_runner, socket_thread, net_log, source),
+ scoped_refptr<BluetoothSocketThread> socket_thread)
+ : BluetoothSocketNet(ui_task_runner, socket_thread),
supports_rfcomm_(false),
rfcomm_channel_(0xFF),
bth_addr_(BTH_ADDR_NULL) {
@@ -389,11 +385,8 @@ void BluetoothSocketWin::OnAcceptOnUI(
return;
}
- scoped_refptr<BluetoothSocketWin> peer_socket = CreateBluetoothSocket(
- ui_task_runner(),
- socket_thread(),
- net_log(),
- source());
+ scoped_refptr<BluetoothSocketWin> peer_socket =
+ CreateBluetoothSocket(ui_task_runner(), socket_thread());
peer_socket->SetTCPSocket(accept_socket.Pass());
success_callback.Run(peer_device, peer_socket);
}
« no previous file with comments | « device/bluetooth/bluetooth_socket_win.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698