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

Unified Diff: device/bluetooth/bluetooth_remote_gatt_descriptor_android.cc

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_remote_gatt_descriptor_android.cc
diff --git a/device/bluetooth/bluetooth_remote_gatt_descriptor_android.cc b/device/bluetooth/bluetooth_remote_gatt_descriptor_android.cc
index 6e835a209bed29573326ec3e6845abd031e81e38..b0ee1b3e024fc36b852ca7f2386fdf9217a4f3f1 100644
--- a/device/bluetooth/bluetooth_remote_gatt_descriptor_android.cc
+++ b/device/bluetooth/bluetooth_remote_gatt_descriptor_android.cc
@@ -19,6 +19,7 @@
using base::android::AttachCurrentThread;
using base::android::JavaParamRef;
+using base::android::JavaRef;
namespace device {
@@ -26,9 +27,9 @@ namespace device {
std::unique_ptr<BluetoothRemoteGattDescriptorAndroid>
BluetoothRemoteGattDescriptorAndroid::Create(
const std::string& instance_id,
- jobject /* BluetoothGattDescriptorWrapper */
+ const JavaRef<jobject>& /* BluetoothGattDescriptorWrapper */
bluetooth_gatt_descriptor_wrapper,
- jobject /* chromeBluetoothDevice */
+ const JavaRef<jobject>& /* chromeBluetoothDevice */
chrome_bluetooth_device) {
std::unique_ptr<BluetoothRemoteGattDescriptorAndroid> descriptor(
new BluetoothRemoteGattDescriptorAndroid(instance_id));

Powered by Google App Engine
This is Rietveld 408576698