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

Unified Diff: device/bluetooth/bluetooth_adapter_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 | « no previous file | device/bluetooth/bluetooth_adapter_mac_unittest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_adapter_mac.mm
diff --git a/device/bluetooth/bluetooth_adapter_mac.mm b/device/bluetooth/bluetooth_adapter_mac.mm
index ad781639947034475b0c99651ae40fa7f7262475..64dbb0393113d9c2e73dd6784db11c77994f2d9f 100644
--- a/device/bluetooth/bluetooth_adapter_mac.mm
+++ b/device/bluetooth/bluetooth_adapter_mac.mm
@@ -100,12 +100,12 @@ BluetoothAdapterMac::BluetoothAdapterMac()
initWithDiscoveryManager:low_energy_discovery_manager_.get()
andAdapter:this]);
low_energy_central_manager_.reset([[CBCentralManager alloc]
- initWithDelegate:low_energy_central_manager_delegate_.get()
+ initWithDelegate:low_energy_central_manager_delegate_
queue:dispatch_get_main_queue()]);
low_energy_discovery_manager_->SetCentralManager(
- low_energy_central_manager_.get());
+ low_energy_central_manager_);
}
- DCHECK(classic_discovery_manager_.get());
+ DCHECK(classic_discovery_manager_);
}
BluetoothAdapterMac::~BluetoothAdapterMac() {
@@ -293,8 +293,7 @@ void BluetoothAdapterMac::SetCentralManagerForTesting(
central_manager.delegate = low_energy_central_manager_delegate_;
low_energy_central_manager_.reset(central_manager,
base::scoped_policy::RETAIN);
- low_energy_discovery_manager_->SetCentralManager(
- low_energy_central_manager_.get());
+ low_energy_discovery_manager_->SetCentralManager(low_energy_central_manager_);
}
CBCentralManager* BluetoothAdapterMac::GetCentralManager() {
« no previous file with comments | « no previous file | device/bluetooth/bluetooth_adapter_mac_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698