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

Unified Diff: device/bluetooth/bluetooth_remote_gatt_service_android.cc

Issue 2237943002: Remove now-unnecessary .obj() in Java method calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@switch-context
Patch Set: Rebase *again* :( Created 4 years, 4 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.cc
diff --git a/device/bluetooth/bluetooth_remote_gatt_service_android.cc b/device/bluetooth/bluetooth_remote_gatt_service_android.cc
index 730983655f86e55966d4e811b627f327b5f633f0..e26326de51b55a3694f0928b24e3d17eb11e3e9f 100644
--- a/device/bluetooth/bluetooth_remote_gatt_service_android.cc
+++ b/device/bluetooth/bluetooth_remote_gatt_service_android.cc
@@ -33,7 +33,7 @@ BluetoothRemoteGattServiceAndroid::Create(
service->j_service_.Reset(Java_ChromeBluetoothRemoteGattService_create(
env, reinterpret_cast<intptr_t>(service.get()),
bluetooth_gatt_service_wrapper,
- base::android::ConvertUTF8ToJavaString(env, instance_id).obj(),
+ base::android::ConvertUTF8ToJavaString(env, instance_id),
chrome_bluetooth_device));
return service;
@@ -41,7 +41,7 @@ BluetoothRemoteGattServiceAndroid::Create(
BluetoothRemoteGattServiceAndroid::~BluetoothRemoteGattServiceAndroid() {
Java_ChromeBluetoothRemoteGattService_onBluetoothRemoteGattServiceAndroidDestruction(
- AttachCurrentThread(), j_service_.obj());
+ AttachCurrentThread(), j_service_);
}
// static
@@ -116,7 +116,7 @@ std::string BluetoothRemoteGattServiceAndroid::GetIdentifier() const {
device::BluetoothUUID BluetoothRemoteGattServiceAndroid::GetUUID() const {
return device::BluetoothUUID(
ConvertJavaStringToUTF8(Java_ChromeBluetoothRemoteGattService_getUUID(
- AttachCurrentThread(), j_service_.obj())));
+ AttachCurrentThread(), j_service_)));
}
bool BluetoothRemoteGattServiceAndroid::IsPrimary() const {
@@ -185,7 +185,7 @@ void BluetoothRemoteGattServiceAndroid::EnsureCharacteristicsCreated() const {
// Java call
Java_ChromeBluetoothRemoteGattService_createCharacteristics(
- AttachCurrentThread(), j_service_.obj());
+ AttachCurrentThread(), j_service_);
}
} // namespace device
« no previous file with comments | « device/bluetooth/bluetooth_remote_gatt_descriptor_android.cc ('k') | device/bluetooth/test/bluetooth_test_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698