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

Unified Diff: device/bluetooth/bluetooth_discovery_manager_mac.mm

Issue 1165053003: Adding support for Low Energy device discovery to BluetoothAdapterMac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment fixes Created 5 years, 6 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_discovery_manager_mac.mm
diff --git a/device/bluetooth/bluetooth_discovery_manager_mac.mm b/device/bluetooth/bluetooth_discovery_manager_mac.mm
index 716858b873ad5ab1df63667bcd820f3a320c8222..1cc99d6cf786d71191a516a56dec9386cd279e48 100644
--- a/device/bluetooth/bluetooth_discovery_manager_mac.mm
+++ b/device/bluetooth/bluetooth_discovery_manager_mac.mm
@@ -124,7 +124,7 @@ class BluetoothDiscoveryManagerMacClassic
void DeviceFound(IOBluetoothDeviceInquiry* inquiry,
IOBluetoothDevice* device) {
DCHECK(observer_);
- observer_->DeviceFound(device);
+ observer_->ClassicDeviceFound(device);
}
void DeviceInquiryComplete(IOBluetoothDeviceInquiry* inquiry,
@@ -138,7 +138,7 @@ class BluetoothDiscoveryManagerMacClassic
// If discovery is no longer desired, notify observers that discovery
// has stopped and return.
if (!should_do_discovery_) {
- observer_->DiscoveryStopped(false /* unexpected */);
+ observer_->ClassicDiscoveryStopped(false /* unexpected */);
return;
}
@@ -147,7 +147,7 @@ class BluetoothDiscoveryManagerMacClassic
if (error != kIOReturnSuccess) {
DVLOG(1) << "Inquiry has stopped with an error: " << error;
should_do_discovery_ = false;
- observer_->DiscoveryStopped(true /* unexpected */);
+ observer_->ClassicDiscoveryStopped(true /* unexpected */);
return;
}
@@ -161,7 +161,7 @@ class BluetoothDiscoveryManagerMacClassic
DVLOG(1) << "Failed to restart discovery";
should_do_discovery_ = false;
DCHECK(observer_);
- observer_->DiscoveryStopped(true /* unexpected */);
+ observer_->ClassicDiscoveryStopped(true /* unexpected */);
}
private:
« no previous file with comments | « device/bluetooth/bluetooth_discovery_manager_mac.h ('k') | device/bluetooth/bluetooth_low_energy_device_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698