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

Unified Diff: device/bluetooth/bluetooth_device_win.cc

Issue 395633003: Enumerate Bluetooth LE services and expose them to chrome.bluetooth API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix x64 build. 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.gyp ('k') | device/bluetooth/bluetooth_device_win_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_device_win.cc
diff --git a/device/bluetooth/bluetooth_device_win.cc b/device/bluetooth/bluetooth_device_win.cc
index 47376bcdae0afbfa7d60ac68a797fb448198277e..3449fe7bf68609d46ae30688a64be6a3c19a055d 100644
--- a/device/bluetooth/bluetooth_device_win.cc
+++ b/device/bluetooth/bluetooth_device_win.cc
@@ -47,15 +47,8 @@ BluetoothDeviceWin::BluetoothDeviceWin(
iter = state.service_record_states.begin();
iter != state.service_record_states.end();
++iter) {
- uint8 sdp_bytes_buffer[kSdpBytesBufferSize];
- std::copy((*iter)->sdp_bytes.begin(),
- (*iter)->sdp_bytes.end(),
- sdp_bytes_buffer);
BluetoothServiceRecordWin* service_record = new BluetoothServiceRecordWin(
- (*iter)->name,
- (*iter)->address,
- (*iter)->sdp_bytes.size(),
- sdp_bytes_buffer);
+ state.address, (*iter)->name, (*iter)->sdp_bytes, (*iter)->gatt_uuid);
service_record_list_.push_back(service_record);
uuids_.push_back(service_record->uuid());
}
« no previous file with comments | « device/bluetooth/bluetooth.gyp ('k') | device/bluetooth/bluetooth_device_win_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698