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

Unified Diff: device/bluetooth/bluetooth_low_energy_win.cc

Issue 424093004: Improve processing of Bluetooth device discovery on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address code review feedback (nits and memory leak). 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_low_energy_win.h ('k') | device/bluetooth/bluetooth_service_record_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_low_energy_win.cc
diff --git a/device/bluetooth/bluetooth_low_energy_win.cc b/device/bluetooth/bluetooth_low_energy_win.cc
index b47bc9af0137afd94144d327fe2035b90f89689a..cf1ad4b55049bc05d3673b5b60dd2d47f3b31b77 100644
--- a/device/bluetooth/bluetooth_low_energy_win.cc
+++ b/device/bluetooth/bluetooth_low_energy_win.cc
@@ -652,11 +652,15 @@ bool EnumerateKnownBluetoothLowEnergyDevices(
}
bool EnumerateKnownBluetoothLowEnergyServices(
- BluetoothLowEnergyDeviceInfo* device_info,
+ const base::FilePath& device_path,
ScopedVector<BluetoothLowEnergyServiceInfo>* services,
std::string* error) {
- return CollectBluetoothLowEnergyDeviceServices(
- device_info->path, services, error);
+ if (!IsBluetoothLowEnergySupported()) {
+ *error = kPlatformNotSupported;
+ return false;
+ }
+
+ return CollectBluetoothLowEnergyDeviceServices(device_path, services, error);
}
bool ExtractBluetoothAddressFromDeviceInstanceIdForTesting(
« no previous file with comments | « device/bluetooth/bluetooth_low_energy_win.h ('k') | device/bluetooth/bluetooth_service_record_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698