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

Unified Diff: device/bluetooth/bluetooth_adapter_mac.h

Issue 1228863002: Runtime checks so that CoreBluetooth only used on >= 10.10 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@timeinfo
Patch Set: CHECK->DCHECK Created 5 years, 5 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.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_adapter_mac.h
diff --git a/device/bluetooth/bluetooth_adapter_mac.h b/device/bluetooth/bluetooth_adapter_mac.h
index c611e14be1768ea3f2ab3b59474da5fac463288d..49427210fdf0f8a199f76c8c9498fd0e0f6a6227 100644
--- a/device/bluetooth/bluetooth_adapter_mac.h
+++ b/device/bluetooth/bluetooth_adapter_mac.h
@@ -91,6 +91,12 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothAdapterMac
// Registers that a new |device| has connected to the local host.
void DeviceConnected(IOBluetoothDevice* device);
+ // We only use CoreBluetooth when OS X >= 10.10. This because the
+ // CBCentralManager destructor was found to crash on the mac_chromium_rel_ng
+ // builder running 10.9.5. May also cause blued to crash on OS X 10.9.5
+ // (crbug.com/506287).
+ static bool IsLowEnergyAvailable();
+
protected:
// BluetoothAdapter override:
void RemovePairingDelegateInternal(
« no previous file with comments | « no previous file | device/bluetooth/bluetooth_adapter_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698