| Index: chrome/android/java/src/org/chromium/chrome/browser/crash/MinidumpPreparationCallable.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/crash/MinidumpPreparationCallable.java b/chrome/android/java/src/org/chromium/chrome/browser/crash/MinidumpPreparationCallable.java
|
| index 0518c41a0dc6aa0ed62c2dd7fc12e1cff088022d..ad9f219b7e8fc9ffa15d72931bfa681e7693e843 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/crash/MinidumpPreparationCallable.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/crash/MinidumpPreparationCallable.java
|
| @@ -183,12 +183,15 @@ public class MinidumpPreparationCallable implements Callable<Boolean> {
|
| @Override
|
| public Boolean call() throws IOException {
|
| // By default set the basic minidump to be uploaded. That way, even if
|
| - // there are errors augmenting the minidump with logcat data something
|
| - // can still upload something.
|
| + // there are errors augmenting the minidump with logcat data, the service
|
| + // can still upload the unaugmented minidump.
|
| List<String> logcat = getLogcatAsList();
|
| boolean success = true;
|
| if (!logcat.isEmpty()) {
|
| success = augmentTargetFile(logcat);
|
| + if (success && !mLogcatFile.delete()) {
|
| + Log.w(TAG, "Failed to delete logcat file: " + mLogcatFile.getName());
|
| + }
|
| }
|
| if (mRedirectIntent != null) {
|
| mContext.startService(mRedirectIntent);
|
|
|