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

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

Issue 2857663003: Add @TargetApi annotation to ChromeUsbInterface.getAlternateSetting (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f4818c81c9a44ee7393b4d8eb020295a6cae7c2e..1637aae0f61453e011f588bef64535e64b2a1eeb 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,9 +4,10 @@
package org.chromium.device.usb;
-import android.annotation.SuppressLint;
+import android.annotation.TargetApi;
import android.hardware.usb.UsbEndpoint;
import android.hardware.usb.UsbInterface;
+import android.os.Build;
import org.chromium.base.Log;
import org.chromium.base.annotations.CalledByNative;
@@ -39,8 +40,7 @@ final class ChromeUsbInterface {
return mInterface.getId();
}
- // TODO(crbug.com/635567): Fix this properly.
- @SuppressLint("NewApi")
+ @TargetApi(Build.VERSION_CODES.LOLLIPOP)
@CalledByNative
private int getAlternateSetting() {
return mInterface.getAlternateSetting();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698