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

Unified Diff: device/bluetooth/bluetooth_device_android.h

Issue 2313413002: Pass JavaRef to Java methods in device/bluetooth. (Closed)
Patch Set: Created 4 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.h
diff --git a/device/bluetooth/bluetooth_device_android.h b/device/bluetooth/bluetooth_device_android.h
index 8e68e5aa2749e33461f6394e5891a042a3dc3519..23b7fd0fbe88b73291a1cef5e4b17f23f241d331 100644
--- a/device/bluetooth/bluetooth_device_android.h
+++ b/device/bluetooth/bluetooth_device_android.h
@@ -10,6 +10,7 @@
#include <memory>
#include "base/android/jni_android.h"
+#include "base/android/scoped_java_ref.h"
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
#include "device/bluetooth/bluetooth_adapter_android.h"
@@ -34,7 +35,8 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothDeviceAndroid final
// this correctly. http://crbug.com/506416
static BluetoothDeviceAndroid* Create(
BluetoothAdapterAndroid* adapter,
- jobject bluetooth_device_wrapper); // Java Type: bluetoothDeviceWrapper
+ const base::android::JavaRef<jobject>&
+ bluetooth_device_wrapper); // Java Type: bluetoothDeviceWrapper
~BluetoothDeviceAndroid() override;

Powered by Google App Engine
This is Rietveld 408576698