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

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: Clean up Windows as well 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
Index: device/bluetooth/bluetooth_socket_win.cc
diff --git a/device/bluetooth/bluetooth_socket_win.cc b/device/bluetooth/bluetooth_socket_win.cc
index 48fbd8a57052e252ea72fa347763815d4948c210..f5e1e6949445748bc4641fafa7a5620a7d63ccf9 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));
keybuk 2014/07/17 18:35:09 these are both singletons too, they're passed down
Ilya Sherman 2014/07/17 18:41:09 I think it's a little different -- the other param
}
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_(-1),
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);
}
« device/bluetooth/bluetooth_socket_chromeos.cc ('K') | « device/bluetooth/bluetooth_socket_win.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698