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

Unified Diff: device/usb/android/usb_jni_registrar.cc

Issue 2146753002: Android: Remove unneeded RegisterNatives() calls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Android: Don't require RegisterNatives if there are none 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/usb/android/usb_jni_registrar.cc
diff --git a/device/usb/android/usb_jni_registrar.cc b/device/usb/android/usb_jni_registrar.cc
index 528bc45924ca954a49f17e3591fe84ff5d1a129a..7f8afe66c8acdcb585a3e4e38276aba75e91ea50 100644
--- a/device/usb/android/usb_jni_registrar.cc
+++ b/device/usb/android/usb_jni_registrar.cc
@@ -6,11 +6,6 @@
#include "base/android/jni_android.h"
#include "base/android/jni_registrar.h"
-#include "device/usb/usb_configuration_android.h"
-#include "device/usb/usb_device_android.h"
-#include "device/usb/usb_device_handle_android.h"
-#include "device/usb/usb_endpoint_android.h"
-#include "device/usb/usb_interface_android.h"
#include "device/usb/usb_service_android.h"
namespace device {
@@ -18,11 +13,6 @@ namespace android {
namespace {
const base::android::RegistrationMethod kRegisteredMethods[] = {
- {"UsbConfigurationAndroid", device::UsbConfigurationAndroid::RegisterJNI},
- {"UsbDeviceAndroid", device::UsbDeviceAndroid::RegisterJNI},
- {"UsbDeviceHandleAndroid", device::UsbDeviceHandleAndroid::RegisterJNI},
- {"UsbEndpointAndroid", device::UsbEndpointAndroid::RegisterJNI},
- {"UsbInterfaceAndroid", device::UsbInterfaceAndroid::RegisterJNI},
{"UsbServiceAndroid", device::UsbServiceAndroid::RegisterJNI},
};

Powered by Google App Engine
This is Rietveld 408576698