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

Unified Diff: content/browser/bluetooth/web_bluetooth_service_impl.cc

Issue 2785383002: Update unit tests for BluetoothDevice::GetPrimaryServicesByUUID() etc. (Closed)
Patch Set: address comments Created 3 years, 9 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 | « no previous file | device/bluetooth/bluetooth_device.h » ('j') | device/bluetooth/bluetooth_device_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/bluetooth/web_bluetooth_service_impl.cc
diff --git a/content/browser/bluetooth/web_bluetooth_service_impl.cc b/content/browser/bluetooth/web_bluetooth_service_impl.cc
index 1fad90e2394dda6ca30203bc7088058d0b59d39f..58c697a30b7207bf3a35aa93cb934e58574103b9 100644
--- a/content/browser/bluetooth/web_bluetooth_service_impl.cc
+++ b/content/browser/bluetooth/web_bluetooth_service_impl.cc
@@ -529,11 +529,10 @@ void WebBluetoothServiceImpl::RemoteCharacteristicGetDescriptors(
return;
}
- auto descriptors =
- descriptors_uuid
- ? query_result.device->GetDescriptorsByUUID(
- query_result.characteristic, descriptors_uuid.value())
- : query_result.characteristic->GetDescriptors();
+ auto descriptors = descriptors_uuid
+ ? query_result.characteristic->GetDescriptorsByUUID(
+ descriptors_uuid.value())
+ : query_result.characteristic->GetDescriptors();
std::vector<blink::mojom::WebBluetoothRemoteGATTDescriptorPtr>
response_descriptors;
« no previous file with comments | « no previous file | device/bluetooth/bluetooth_device.h » ('j') | device/bluetooth/bluetooth_device_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698