| 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();
|
|
|