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

Unified Diff: device/bluetooth/bluetooth_socket_net.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_net.h ('k') | device/bluetooth/bluetooth_socket_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_socket_net.cc
diff --git a/device/bluetooth/bluetooth_socket_net.cc b/device/bluetooth/bluetooth_socket_net.cc
index c42d46eea47eea8385c00751c26979110b831b72..f00ef2b26c51e85b68e50a46ba4b9603f6425794 100644
--- a/device/bluetooth/bluetooth_socket_net.cc
+++ b/device/bluetooth/bluetooth_socket_net.cc
@@ -18,6 +18,7 @@
#include "device/bluetooth/bluetooth_socket_thread.h"
#include "net/base/io_buffer.h"
#include "net/base/net_errors.h"
+#include "net/base/net_log.h"
namespace {
@@ -39,13 +40,9 @@ BluetoothSocketNet::WriteRequest::~WriteRequest() {}
BluetoothSocketNet::BluetoothSocketNet(
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)
: ui_task_runner_(ui_task_runner),
- socket_thread_(socket_thread),
- net_log_(net_log),
- source_(source) {
+ socket_thread_(socket_thread) {
DCHECK(ui_task_runner->RunsTasksOnCurrentThread());
socket_thread_->OnSocketActivate();
}
@@ -119,7 +116,7 @@ void BluetoothSocketNet::ResetData() {
}
void BluetoothSocketNet::ResetTCPSocket() {
- tcp_socket_.reset(new net::TCPSocket(net_log_, source_));
+ tcp_socket_.reset(new net::TCPSocket(NULL, net::NetLog::Source()));
}
void BluetoothSocketNet::SetTCPSocket(scoped_ptr<net::TCPSocket> tcp_socket) {
« no previous file with comments | « device/bluetooth/bluetooth_socket_net.h ('k') | device/bluetooth/bluetooth_socket_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698