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

Unified Diff: device/bluetooth/bluetooth_low_energy_device_mac.mm

Issue 1965023002: Finish https://codereview.chromium.org/1948763003 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Split code Created 4 years, 7 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_low_energy_device_mac.mm
diff --git a/device/bluetooth/bluetooth_low_energy_device_mac.mm b/device/bluetooth/bluetooth_low_energy_device_mac.mm
index 0573c2fc11b8cb11d9e70db97c3c4e87b78518d8..20d2a4cfd480aafb469390ef6107b5fda013bd13 100644
--- a/device/bluetooth/bluetooth_low_energy_device_mac.mm
+++ b/device/bluetooth/bluetooth_low_energy_device_mac.mm
@@ -252,8 +252,9 @@ void BluetoothLowEnergyDeviceMac::DidDiscoverPrimaryServices(NSError* error) {
if (!gatt_service) {
gatt_service = new BluetoothRemoteGattServiceMac(this, cb_service,
true /* is_primary */);
- gatt_services_.add(gatt_service->GetIdentifier(),
- base::WrapUnique(gatt_service));
+ auto result_iter = gatt_services_.add(gatt_service->GetIdentifier(),
+ base::WrapUnique(gatt_service));
+ DCHECK(result_iter.second);
adapter_->NotifyGattServiceAdded(gatt_service);
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698