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

Unified Diff: device/bluetooth/bluetooth_adapter_win.cc

Issue 320463002: Bluetooth: Implement socket API for Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix lost comment Created 6 years, 6 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_adapter_win.cc
diff --git a/device/bluetooth/bluetooth_adapter_win.cc b/device/bluetooth/bluetooth_adapter_win.cc
index 6bbdb0573b9d1988ae4b86c862170dfd14823711..1ae692870c651e7bcca1e02c852c9e0a4c9fb8a5 100644
--- a/device/bluetooth/bluetooth_adapter_win.cc
+++ b/device/bluetooth/bluetooth_adapter_win.cc
@@ -167,8 +167,16 @@ void BluetoothAdapterWin::CreateRfcommService(
bool insecure,
const CreateServiceCallback& callback,
const CreateServiceErrorCallback& error_callback) {
- // TODO(keybuk): implement.
- NOTIMPLEMENTED();
+ // Note that |insecure| is ignored.
+ scoped_refptr<BluetoothSocketWin> socket =
+ BluetoothSocketWin::CreateBluetoothSocket(
+ ui_task_runner_,
+ socket_thread_,
+ NULL,
+ net::NetLog::Source());
+ socket->Listen(this, uuid, channel,
+ base::Bind(callback, socket),
+ error_callback);
}
void BluetoothAdapterWin::CreateL2capService(

Powered by Google App Engine
This is Rietveld 408576698