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

Unified Diff: media/base/android/java/src/org/chromium/media/UsbMidiDeviceFactoryAndroid.java

Issue 600983002: [Checkstyle] Fix misc style issues in Java files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build Created 6 years, 3 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: 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;

Powered by Google App Engine
This is Rietveld 408576698