crash_sender: log product info in new list format

The 00A0 unicode space hack hasn't been reliable.  The latest Chromium
code supports a 3rd field in the crash list though, so let's use that
instead.  The UI has already been updated to look for this:
https://codereview.chromium.org/219383008/

BUG=chromium:210624
TEST=logged a system crash and looked at crashes page
TEST=logged a chrome crash and looked at crashes page
TEST=`cbuildbot {x86,amd64}-generic-full` pass (VMTests)

Change-Id: Icce0d9d26276143a1604b8eef5c68a2a6417c912
Reviewed-on: https://chromium-review.googlesource.com/193611
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
This commit is contained in:
Mike Frysinger 2014-04-08 14:34:04 -04:00 committed by chrome-internal-fetch
parent 0446aab3b5
commit 042c3d406a

View file

@ -460,14 +460,22 @@ send_crash() {
local product_name
local timestamp="$(date +%s)"
case ${product} in
Chrome_ChromeOS)
Chrome_ChromeOS)
if is_official_image; then
product_name="Chrome"
;;
*)
else
product_name="Chromium"
fi
;;
*)
if is_official_image; then
product_name="ChromeOS"
;;
else
product_name="ChromiumOS"
fi
;;
esac
/usr/bin/printf '%s,%s\u00A0(%s)\n' \
printf '%s,%s,%s\n' \
"${timestamp}" "${id}" "${product_name}" >> "${CHROME_CRASH_LOG}"
lecho "Crash report receipt ID ${id}"
else