| Index: crash_sender
|
| diff --git a/crash_sender b/crash_sender
|
| index 7c721403b3014c14413e34b6c72d4759ac2c83ee..4332117ae43a3e291c03ff047d0f2763efb91843 100644
|
| --- a/crash_sender
|
| +++ b/crash_sender
|
| @@ -68,6 +68,11 @@ get_version() {
|
| grep ^CHROMEOS_RELEASE_VERSION /etc/lsb-release | cut -d = -f 2-
|
| }
|
|
|
| +is_official() {
|
| + grep ^CHROMEOS_RELEASE_DESCRIPTION /etc/lsb-release | cut -d = -f 2- | \
|
| + grep Official
|
| +}
|
| +
|
| # Generate a uniform random number in 0..max-1.
|
| generate_uniform_random() {
|
| local max=$1
|
| @@ -106,6 +111,9 @@ check_rate() {
|
| send_crash() {
|
| local sleep_time=$(generate_uniform_random $SECONDS_SEND_SPREAD)
|
| local url="${MINIDUMP_UPLOAD_STAGING_URL}"
|
| + if is_official; then
|
| + url="${MINIDUMP_UPLOAD_PROD_URL}"
|
| + fi
|
| lecho "Sending crash:"
|
| lecho " Scheduled to send in ${sleep_time}s"
|
| lecho " Minidump: ${minidump_path}"
|
|
|