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

Unified Diff: device/usb/usb_device_handle_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
« no previous file with comments | « device/usb/usb_device_android.cc ('k') | device/usb/usb_endpoint_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/usb/usb_device_handle_android.cc
diff --git a/device/usb/usb_device_handle_android.cc b/device/usb/usb_device_handle_android.cc
index 5041f60a3ed7ab01f693af5c16ddf4ed08f7555b..e2e0dc03d8916f15dced5183d73b0d485be5a23f 100644
--- a/device/usb/usb_device_handle_android.cc
+++ b/device/usb/usb_device_handle_android.cc
@@ -20,9 +20,8 @@ scoped_refptr<UsbDeviceHandleAndroid> UsbDeviceHandleAndroid::Create(
scoped_refptr<base::SequencedTaskRunner> blocking_task_runner,
const base::android::JavaRef<jobject>& usb_connection) {
ScopedJavaLocalRef<jobject> wrapper =
- Java_ChromeUsbConnection_create(env, usb_connection.obj());
- base::ScopedFD fd(
- Java_ChromeUsbConnection_getFileDescriptor(env, wrapper.obj()));
+ Java_ChromeUsbConnection_create(env, usb_connection);
+ base::ScopedFD fd(Java_ChromeUsbConnection_getFileDescriptor(env, wrapper));
return make_scoped_refptr(new UsbDeviceHandleAndroid(
device, std::move(fd), blocking_task_runner, wrapper));
}
@@ -45,7 +44,7 @@ void UsbDeviceHandleAndroid::CloseBlocking() {
void UsbDeviceHandleAndroid::CloseConnection() {
JNIEnv* env = base::android::AttachCurrentThread();
- Java_ChromeUsbConnection_close(env, j_object_.obj());
+ Java_ChromeUsbConnection_close(env, j_object_);
j_object_.Reset();
}
« no previous file with comments | « device/usb/usb_device_android.cc ('k') | device/usb/usb_endpoint_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698