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

Unified Diff: device/bluetooth/test/mock_bluetooth_central_manager_mac.mm

Issue 2906883004: bluetooth: macOS: Removing useless |.get()| (Closed)
Patch Set: Merge from top of tree Created 3 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 | « device/bluetooth/test/mock_bluetooth_cbservice_mac.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/test/mock_bluetooth_central_manager_mac.mm
diff --git a/device/bluetooth/test/mock_bluetooth_central_manager_mac.mm b/device/bluetooth/test/mock_bluetooth_central_manager_mac.mm
index fa0bd8485cdf5ec4d5a4f32172e25e1187ac6da4..2a5712464f7565414fbf82661d8a3d89a5e5eac2 100644
--- a/device/bluetooth/test/mock_bluetooth_central_manager_mac.mm
+++ b/device/bluetooth/test/mock_bluetooth_central_manager_mac.mm
@@ -78,16 +78,16 @@ using base::scoped_nsobject;
}
- (NSArray*)retrieveConnectedPeripheralServiceUUIDs {
- return [[_retrieveConnectedPeripheralServiceUUIDs.get() copy] autorelease];
+ return [[_retrieveConnectedPeripheralServiceUUIDs copy] autorelease];
}
- (NSArray*)retrieveConnectedPeripheralsWithServices:(NSArray*)services {
- [_retrieveConnectedPeripheralServiceUUIDs.get()
+ [_retrieveConnectedPeripheralServiceUUIDs
addObjectsFromArray:[services copy]];
NSMutableArray* connectedPeripherals = [[NSMutableArray alloc] init];
for (CBUUID* uuid in services) {
NSSet* peripheralSet =
- [_connectedMockPeripheralPerServiceUUID.get() objectForKey:uuid];
+ [_connectedMockPeripheralPerServiceUUID objectForKey:uuid];
[connectedPeripherals addObjectsFromArray:peripheralSet.allObjects];
}
return connectedPeripherals;
@@ -97,11 +97,11 @@ using base::scoped_nsobject;
withServiceUUIDs:(NSSet*)serviceUUIDs {
for (CBUUID* uuid in serviceUUIDs) {
NSMutableSet* peripheralSet =
- [_connectedMockPeripheralPerServiceUUID.get() objectForKey:uuid];
+ [_connectedMockPeripheralPerServiceUUID objectForKey:uuid];
if (!peripheralSet) {
peripheralSet = [NSMutableSet set];
- [_connectedMockPeripheralPerServiceUUID.get() setObject:peripheralSet
- forKey:uuid];
+ [_connectedMockPeripheralPerServiceUUID setObject:peripheralSet
+ forKey:uuid];
}
[peripheralSet addObject:peripheral];
}
« no previous file with comments | « device/bluetooth/test/mock_bluetooth_cbservice_mac.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698