| Index: media/base/android/java/src/org/chromium/media/UsbMidiDeviceFactoryAndroid.java
|
| diff --git a/media/base/android/java/src/org/chromium/media/UsbMidiDeviceFactoryAndroid.java b/media/base/android/java/src/org/chromium/media/UsbMidiDeviceFactoryAndroid.java
|
| index 7c0953f50320563c4454094d4c4bac20cd808316..ffcc9ea40950fdc718699b41d4e19ebc964d7b14 100644
|
| --- a/media/base/android/java/src/org/chromium/media/UsbMidiDeviceFactoryAndroid.java
|
| +++ b/media/base/android/java/src/org/chromium/media/UsbMidiDeviceFactoryAndroid.java
|
| @@ -59,7 +59,7 @@ class UsbMidiDeviceFactoryAndroid {
|
|
|
| /**
|
| * Constructs a UsbMidiDeviceAndroid.
|
| - * @param natviePointer The native pointer to which the created factory is associated.
|
| + * @param nativePointer The native pointer to which the created factory is associated.
|
| */
|
| UsbMidiDeviceFactoryAndroid(long nativePointer) {
|
| mNativePointer = nativePointer;
|
| @@ -85,7 +85,7 @@ class UsbMidiDeviceFactoryAndroid {
|
| */
|
| @CalledByNative
|
| boolean enumerateDevices(Context context) {
|
| - mUsbManager = (UsbManager)context.getSystemService(Context.USB_SERVICE);
|
| + mUsbManager = (UsbManager) context.getSystemService(Context.USB_SERVICE);
|
| Map<String, UsbDevice> devices = mUsbManager.getDeviceList();
|
| PendingIntent pendingIntent = PendingIntent.getBroadcast(
|
| context, 0, new Intent(ACTION_USB_PERMISSION), 0);
|
| @@ -111,6 +111,7 @@ class UsbMidiDeviceFactoryAndroid {
|
|
|
| IntentFilter filter = new IntentFilter(ACTION_USB_PERMISSION);
|
| mReceiver = new BroadcastReceiver() {
|
| + @Override
|
| public void onReceive(Context context, Intent intent) {
|
| if (ACTION_USB_PERMISSION.equals(intent.getAction())) {
|
| onRequestDone(context, intent);
|
| @@ -128,7 +129,7 @@ class UsbMidiDeviceFactoryAndroid {
|
| * nativeOnUsbMidiDeviceRequestDone with the accessible USB-MIDI devices.
|
| */
|
| private void onRequestDone(Context context, Intent intent) {
|
| - UsbDevice device = (UsbDevice)intent.getParcelableExtra(UsbManager.EXTRA_DEVICE);
|
| + UsbDevice device = (UsbDevice) intent.getParcelableExtra(UsbManager.EXTRA_DEVICE);
|
| if (!mRequestedDevices.contains(device)) {
|
| // We are not interested in the device.
|
| return;
|
|
|