diff options
Diffstat (limited to 'device/bluetooth/bluetooth_adapter_android.cc')
-rw-r--r-- | device/bluetooth/bluetooth_adapter_android.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/device/bluetooth/bluetooth_adapter_android.cc b/device/bluetooth/bluetooth_adapter_android.cc index 144ad52..00cead7 100644 --- a/device/bluetooth/bluetooth_adapter_android.cc +++ b/device/bluetooth/bluetooth_adapter_android.cc @@ -77,7 +77,12 @@ bool BluetoothAdapterAndroid::IsPowered() const { void BluetoothAdapterAndroid::SetPowered(bool powered, const base::Closure& callback, const ErrorCallback& error_callback) { - NOTIMPLEMENTED(); + if (Java_ChromeBluetoothAdapter_setPowered(AttachCurrentThread(), + j_adapter_.obj(), powered)) { + callback.Run(); + } else { + error_callback.Run(); + } } bool BluetoothAdapterAndroid::IsDiscoverable() const { |