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

Unified Diff: device/bluetooth/bluetooth_remote_gatt_descriptor_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_descriptor_android.h
diff --git a/device/bluetooth/bluetooth_remote_gatt_descriptor_android.h b/device/bluetooth/bluetooth_remote_gatt_descriptor_android.h
index b959a54d82076ed2b8da2a81cc3c7842ea625874..fa4a415812362124578d5f63af7ad2b845e7a57d 100644
--- a/device/bluetooth/bluetooth_remote_gatt_descriptor_android.h
+++ b/device/bluetooth/bluetooth_remote_gatt_descriptor_android.h
@@ -8,6 +8,7 @@
#include <memory>
#include "base/android/jni_android.h"
+#include "base/android/scoped_java_ref.h"
#include "base/macros.h"
#include "device/bluetooth/bluetooth_remote_gatt_characteristic.h"
#include "device/bluetooth/bluetooth_remote_gatt_descriptor.h"
@@ -28,9 +29,11 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothRemoteGattDescriptorAndroid
// reference to |bluetooth_gatt_descriptor_wrapper|.
static std::unique_ptr<BluetoothRemoteGattDescriptorAndroid> Create(
const std::string& instanceId,
- jobject /* BluetoothGattDescriptorWrapper */
+ const base::android::JavaRef<jobject>& /* BluetoothGattDescriptorWrapper
+ */
bluetooth_gatt_descriptor_wrapper,
- jobject /* chromeBluetoothDevice */ chrome_bluetooth_device);
+ const base::android::JavaRef<
+ jobject>& /* chromeBluetoothDevice */ chrome_bluetooth_device);
~BluetoothRemoteGattDescriptorAndroid() override;

Powered by Google App Engine
This is Rietveld 408576698