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

Unified Diff: device/bluetooth/bluetooth_adapter_factory_wrapper.cc

Issue 2384463002: bluetooth: mac: Reject requestDevice promise if Mac version is <= 10.9 (Closed)
Patch Set: Created 4 years, 2 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_factory_wrapper.cc
diff --git a/device/bluetooth/bluetooth_adapter_factory_wrapper.cc b/device/bluetooth/bluetooth_adapter_factory_wrapper.cc
index e4b858a04c600bd9618e7d226ec8a9df17bb40fd..79df83de65ad427431f86d0f42faf8fc6ab4a24f 100644
--- a/device/bluetooth/bluetooth_adapter_factory_wrapper.cc
+++ b/device/bluetooth/bluetooth_adapter_factory_wrapper.cc
@@ -40,6 +40,11 @@ bool BluetoothAdapterFactoryWrapper::IsBluetoothAdapterAvailable() {
return BluetoothAdapterFactory::IsBluetoothAdapterAvailable();
}
+bool BluetoothAdapterFactoryWrapper::IsLowEnergyAvailable() {
+ DCHECK(thread_checker_.CalledOnValidThread());
+ return BluetoothAdapterFactory::IsLowEnergyAvailable();
ortuno 2016/10/04 03:20:24 I think you would want a similar logic to the adap
François Beaufort 2016/10/04 10:00:22 Done.
+}
+
void BluetoothAdapterFactoryWrapper::AcquireAdapter(
BluetoothAdapter::Observer* observer,
const AcquireAdapterCallback& callback) {

Powered by Google App Engine
This is Rietveld 408576698