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

Unified Diff: device/bluetooth/bluetooth_socket_chromeos.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_chromeos.cc
diff --git a/device/bluetooth/bluetooth_socket_chromeos.cc b/device/bluetooth/bluetooth_socket_chromeos.cc
index e073ad8b9a6846ff2bca4f4d3744054f4991f768..e7fb6bdfb6476c8253f5fffee6f6c4bafaec5a77 100644
--- a/device/bluetooth/bluetooth_socket_chromeos.cc
+++ b/device/bluetooth/bluetooth_socket_chromeos.cc
@@ -56,14 +56,11 @@ namespace chromeos {
scoped_refptr<BluetoothSocketChromeOS>
BluetoothSocketChromeOS::CreateBluetoothSocket(
scoped_refptr<base::SequencedTaskRunner> ui_task_runner,
- scoped_refptr<BluetoothSocketThread> socket_thread,
- net::NetLog* net_log,
- const net::NetLog::Source& source) {
+ scoped_refptr<BluetoothSocketThread> socket_thread) {
DCHECK(ui_task_runner->RunsTasksOnCurrentThread());
return make_scoped_refptr(
- new BluetoothSocketChromeOS(
- ui_task_runner, socket_thread, net_log, source));
+ new BluetoothSocketChromeOS(ui_task_runner, socket_thread));
keybuk 2014/07/17 18:35:09 ui_task_runner and socket_thread are singletons to
}
BluetoothSocketChromeOS::AcceptRequest::AcceptRequest() {}
@@ -78,10 +75,8 @@ BluetoothSocketChromeOS::ConnectionRequest::~ConnectionRequest() {}
BluetoothSocketChromeOS::BluetoothSocketChromeOS(
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) {
}
BluetoothSocketChromeOS::~BluetoothSocketChromeOS() {
@@ -438,10 +433,7 @@ void BluetoothSocketChromeOS::AcceptConnectionRequest() {
scoped_refptr<BluetoothSocketChromeOS> client_socket =
BluetoothSocketChromeOS::CreateBluetoothSocket(
- ui_task_runner(),
- socket_thread(),
- net_log(),
- source());
+ ui_task_runner(), socket_thread());
client_socket->device_address_ = device->GetAddress();
client_socket->device_path_ = request->device_path;

Powered by Google App Engine
This is Rietveld 408576698