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

Unified Diff: device/bluetooth/bluetooth_adapter_mac.mm

Issue 229463003: MacOS implementation of BluetoothSocket. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix build error on OSX SDK < 10.7. Created 6 years, 8 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_device_mac.h » ('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 9ac7caaea01f6712e841e769a10197a7b19a6d7a..f8eba23e9e8a4f2032c602f30b9cec5a66cd0290 100644
--- a/device/bluetooth/bluetooth_adapter_mac.mm
+++ b/device/bluetooth/bluetooth_adapter_mac.mm
@@ -265,7 +265,7 @@ void BluetoothAdapterMac::UpdateDevices(NSArray* devices) {
for (IOBluetoothDevice* device in devices) {
std::string device_address =
base::SysNSStringToUTF8([device addressString]);
- devices_[device_address] = new BluetoothDeviceMac(device);
+ devices_[device_address] = new BluetoothDeviceMac(ui_task_runner_, device);
}
}
@@ -290,7 +290,8 @@ void BluetoothAdapterMac::DeviceFound(IOBluetoothDeviceInquiry* inquiry,
DCHECK(device_inquiry_ == inquiry);
std::string device_address = base::SysNSStringToUTF8([device addressString]);
if (discovered_devices_.find(device_address) == discovered_devices_.end()) {
- scoped_ptr<BluetoothDeviceMac> device_mac(new BluetoothDeviceMac(device));
+ scoped_ptr<BluetoothDeviceMac> device_mac(
+ new BluetoothDeviceMac(ui_task_runner_, device));
FOR_EACH_OBSERVER(BluetoothAdapter::Observer, observers_,
DeviceAdded(this, device_mac.get()));
discovered_devices_.insert(device_address);
« no previous file with comments | « no previous file | device/bluetooth/bluetooth_device_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698