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

Unified Diff: components/minidump_uploader/android/java/src/org/chromium/components/minidump_uploader/MinidumpUploadCallable.java

Issue 2735133003: [Cleanup] Run git cl format on minidump uploader files. (Closed)
Patch Set: Manually revert questionable changes Created 3 years, 9 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: components/minidump_uploader/android/java/src/org/chromium/components/minidump_uploader/MinidumpUploadCallable.java
diff --git a/components/minidump_uploader/android/java/src/org/chromium/components/minidump_uploader/MinidumpUploadCallable.java b/components/minidump_uploader/android/java/src/org/chromium/components/minidump_uploader/MinidumpUploadCallable.java
index 44a966bf7c6ee75d9ea1276bb442c03545d4b572..5eec37dbd14c765b8986964ec65ddb20f5d62703 100644
--- a/components/minidump_uploader/android/java/src/org/chromium/components/minidump_uploader/MinidumpUploadCallable.java
+++ b/components/minidump_uploader/android/java/src/org/chromium/components/minidump_uploader/MinidumpUploadCallable.java
@@ -200,8 +200,7 @@ public class MinidumpUploadCallable implements Callable<Integer> {
} else {
// Log the results of the upload. Note that periodic upload failures aren't bad
// because we will need to throttle uploads in the future anyway.
- String msg = String.format(Locale.US,
- "Failed to upload %s with code: %d (%s).",
+ String msg = String.format(Locale.US, "Failed to upload %s with code: %d (%s).",
mFileToUpload.getName(), responseCode, connection.getResponseMessage());
Log.i(TAG, msg);
@@ -295,8 +294,8 @@ public class MinidumpUploadCallable implements Callable<Integer> {
* @param outStream the stream to write to
* @throws IOException
*/
- private static void streamCopy(InputStream inStream,
- OutputStream outStream) throws IOException {
+ private static void streamCopy(InputStream inStream, OutputStream outStream)
+ throws IOException {
byte[] temp = new byte[4096];
int bytesRead = inStream.read(temp);
while (bytesRead >= 0) {
@@ -311,9 +310,9 @@ public class MinidumpUploadCallable implements Callable<Integer> {
private void removeOutdatedPrefs(SharedPreferences sharedPreferences) {
SharedPreferences.Editor editor = sharedPreferences.edit();
editor.remove(PREF_DAY_UPLOAD_COUNT)
- .remove(PREF_LAST_UPLOAD_DAY)
- .remove(PREF_LAST_UPLOAD_WEEK)
- .remove(PREF_WEEK_UPLOAD_SIZE)
- .apply();
+ .remove(PREF_LAST_UPLOAD_DAY)
+ .remove(PREF_LAST_UPLOAD_WEEK)
+ .remove(PREF_WEEK_UPLOAD_SIZE)
+ .apply();
}
}

Powered by Google App Engine
This is Rietveld 408576698