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

Unified Diff: crash_sender

Issue 2756002: Send crashes for official builds to prod crash server (Closed) Base URL: ssh://git@chromiumos-git//crash.git
Patch Set: Created 10 years, 6 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
« no previous file with comments | « crash_dumper.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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}"
« no previous file with comments | « crash_dumper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698