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

Unified Diff: device/bluetooth/bluetooth_adapter_mac.mm

Issue 2906883004: bluetooth: macOS: Removing useless |.get()| (Closed)
Patch Set: 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
Index: device/bluetooth/bluetooth_adapter_mac.mm
diff --git a/device/bluetooth/bluetooth_adapter_mac.mm b/device/bluetooth/bluetooth_adapter_mac.mm
index e7ffdbfae1cb5e8a70a517f07e0d57076ad9e990..21dc772b298792a75154ffdabfce8deff671b513 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') | device/bluetooth/bluetooth_adapter_mac_unittest.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698