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

Unified Diff: device/usb/android/java/src/org/chromium/device/usb/ChromeUsbInterface.java

Issue 2830843004: Update to newer Android Lint and suppress new Lint errors (Closed)
Patch Set: rebase Created 3 years, 8 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/java/src/org/chromium/device/usb/ChromeUsbInterface.java
diff --git a/device/usb/android/java/src/org/chromium/device/usb/ChromeUsbInterface.java b/device/usb/android/java/src/org/chromium/device/usb/ChromeUsbInterface.java
index cd4f49270edead7572e387577e17edf090c1dab9..f4818c81c9a44ee7393b4d8eb020295a6cae7c2e 100644
--- a/device/usb/android/java/src/org/chromium/device/usb/ChromeUsbInterface.java
+++ b/device/usb/android/java/src/org/chromium/device/usb/ChromeUsbInterface.java
@@ -4,6 +4,7 @@
package org.chromium.device.usb;
+import android.annotation.SuppressLint;
import android.hardware.usb.UsbEndpoint;
import android.hardware.usb.UsbInterface;
@@ -38,6 +39,8 @@ final class ChromeUsbInterface {
return mInterface.getId();
}
+ // TODO(crbug.com/635567): Fix this properly.
+ @SuppressLint("NewApi")
@CalledByNative
private int getAlternateSetting() {
return mInterface.getAlternateSetting();

Powered by Google App Engine
This is Rietveld 408576698