Commit ef9016e0 authored by gunsch's avatar gunsch Committed by Commit bot

Cast ATV: crash handler should test CAST_BUILD_INCREMENTAL.

R=byungchul@chromium.org,lcwu@chromium.org
BUG=internal b/19854960

Review URL: https://codereview.chromium.org/1028723002

Cr-Commit-Position: refs/heads/master@{#321604}
parent d2c91b4a
...@@ -191,7 +191,8 @@ public final class CastCrashUploader { ...@@ -191,7 +191,8 @@ public final class CastCrashUploader {
int statusCode = response.getStatusLine().getStatusCode(); int statusCode = response.getStatusLine().getStatusCode();
if (statusCode == HttpStatus.SC_OK) { if (statusCode == HttpStatus.SC_OK) {
Log.d(TAG, "Successfully uploaded as report ID: " + responseLine); Log.d(TAG, "Successfully uploaded to " + mCrashReportUploadUrl
+ ", report ID: " + responseLine);
} else { } else {
Log.e(TAG, "Failed response (" + statusCode + "): " + responseLine); Log.e(TAG, "Failed response (" + statusCode + "): " + responseLine);
......
...@@ -45,7 +45,7 @@ bool UploadCrashToStaging() { ...@@ -45,7 +45,7 @@ bool UploadCrashToStaging() {
return true; return true;
#else #else
int build_number; int build_number;
if (base::StringToInt(CAST_BUILD_REVISION, &build_number)) if (base::StringToInt(CAST_BUILD_INCREMENTAL, &build_number))
return build_number == 0; return build_number == 0;
return true; return true;
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment