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

Unified Diff: ui/android/java/src/org/chromium/ui/base/SelectFileDialog.java

Issue 744453002: Fix a bunch of Java Checkstyle issues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: NeedsBraces to info Created 6 years, 1 month 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: ui/android/java/src/org/chromium/ui/base/SelectFileDialog.java
diff --git a/ui/android/java/src/org/chromium/ui/base/SelectFileDialog.java b/ui/android/java/src/org/chromium/ui/base/SelectFileDialog.java
index bc6efb78f9c1f90a86a3ecbbb21da1bf77d75635..4ba85b04ed85fb10b00680ff41b418f7f278785c 100644
--- a/ui/android/java/src/org/chromium/ui/base/SelectFileDialog.java
+++ b/ui/android/java/src/org/chromium/ui/base/SelectFileDialog.java
@@ -73,8 +73,8 @@ class SelectFileDialog implements WindowAndroid.IntentCallback {
Intent chooser = new Intent(Intent.ACTION_CHOOSER);
Intent camera = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
Context context = window.getApplicationContext();
- camera.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION |
- Intent.FLAG_GRANT_WRITE_URI_PERMISSION);
+ camera.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION
+ | Intent.FLAG_GRANT_WRITE_URI_PERMISSION);
try {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR2) {
mCameraOutputUri = ContentUriUtils.getContentUriFromFile(
@@ -171,8 +171,8 @@ class SelectFileDialog implements WindowAndroid.IntentCallback {
} else {
File externalDataDir = Environment.getExternalStoragePublicDirectory(
Environment.DIRECTORY_DCIM);
- path = new File(externalDataDir.getAbsolutePath() +
- File.separator + CAPTURE_IMAGE_DIRECTORY);
+ path = new File(externalDataDir.getAbsolutePath()
+ + File.separator + CAPTURE_IMAGE_DIRECTORY);
if (!path.exists() && !path.mkdirs()) {
path = externalDataDir;
}
@@ -205,8 +205,8 @@ class SelectFileDialog implements WindowAndroid.IntentCallback {
// If the uri is a file, we need to convert it to the absolute path or otherwise
// android cannot handle it correctly on some earlier versions.
// http://crbug.com/423338.
- String path = ContentResolver.SCHEME_FILE.equals(mCameraOutputUri.getScheme()) ?
- mCameraOutputUri.getPath() : mCameraOutputUri.toString();
+ String path = ContentResolver.SCHEME_FILE.equals(mCameraOutputUri.getScheme())
+ ? mCameraOutputUri.getPath() : mCameraOutputUri.toString();
nativeOnFileSelected(mNativeSelectFileDialog, path,
mCameraOutputUri.getLastPathSegment());
// Broadcast to the media scanner that there's a new photo on the device so it will
@@ -220,9 +220,8 @@ class SelectFileDialog implements WindowAndroid.IntentCallback {
// Path for when EXTRA_ALLOW_MULTIPLE Intent extra has been defined. Each of the selected
// files will be shared as an entry on the Intent's ClipData. This functionality is only
// available in Android JellyBean MR2 and higher.
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR2 &&
- results.getData() == null &&
- results.getClipData() != null) {
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR2
+ && results.getData() == null && results.getClipData() != null) {
ClipData clipData = results.getClipData();
int itemCount = clipData.getItemCount();

Powered by Google App Engine
This is Rietveld 408576698