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

Unified Diff: device/bluetooth/bluetooth_device_android.cc

Issue 1369463004: bluetooth: android: Disconnect GATT upon BluetoothDeviceAndroid object destruction. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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_device_android.cc
diff --git a/device/bluetooth/bluetooth_device_android.cc b/device/bluetooth/bluetooth_device_android.cc
index 244ab0233d167c34fc1f3128da13ed13b0d161f3..2d9c954a1445c2945a00849903792808f3ea2b76 100644
--- a/device/bluetooth/bluetooth_device_android.cc
+++ b/device/bluetooth/bluetooth_device_android.cc
@@ -28,6 +28,8 @@ BluetoothDeviceAndroid* BluetoothDeviceAndroid::Create(
}
BluetoothDeviceAndroid::~BluetoothDeviceAndroid() {
+ Java_ChromeBluetoothDevice_onBluetoothDeviceAndroidDestruction(
+ AttachCurrentThread(), j_device_.obj());
}
bool BluetoothDeviceAndroid::UpdateAdvertisedUUIDs(jobject advertised_uuids) {

Powered by Google App Engine
This is Rietveld 408576698