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

Unified Diff: device/bluetooth/bluetooth_remote_gatt_service_android.h

Issue 2313413002: Pass JavaRef to Java methods in device/bluetooth. (Closed)
Patch Set: Switch comments to a different form that clang-format will fit in 80 chars 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_service_android.h
diff --git a/device/bluetooth/bluetooth_remote_gatt_service_android.h b/device/bluetooth/bluetooth_remote_gatt_service_android.h
index f009258720a82230cfb3ac6b33b08d4f92732142..ef3be1bc075ac5b3f6fd512c4da59f7c0bcdfed4 100644
--- a/device/bluetooth/bluetooth_remote_gatt_service_android.h
+++ b/device/bluetooth/bluetooth_remote_gatt_service_android.h
@@ -11,6 +11,7 @@
#include <vector>
#include "base/android/jni_android.h"
+#include "base/android/scoped_java_ref.h"
#include "base/containers/scoped_ptr_hash_map.h"
#include "base/macros.h"
#include "device/bluetooth/bluetooth_remote_gatt_service.h"
@@ -37,9 +38,11 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothRemoteGattServiceAndroid
static std::unique_ptr<BluetoothRemoteGattServiceAndroid> Create(
BluetoothAdapterAndroid* adapter,
BluetoothDeviceAndroid* device,
- jobject /* BluetoothGattServiceWrapper */ bluetooth_gatt_service_wrapper,
+ const base::android::JavaRef<jobject>&
+ bluetooth_gatt_service_wrapper, // BluetoothGattServiceWrapper
const std::string& instance_id,
- jobject /* ChromeBluetoothDevice */ chrome_bluetooth_device);
+ const base::android::JavaRef<jobject>&
+ chrome_bluetooth_device); // ChromeBluetoothDevice
~BluetoothRemoteGattServiceAndroid() override;

Powered by Google App Engine
This is Rietveld 408576698