crash-reporter: Attach Chrome logs to crash reports.

When Chrome crashes, gather the last 20 lines of each of the
latest two log files in /var/log/chrome and
/home/chronos/user/log and include them in the archive file
that's attached to crash reports.

TEST=triggered crashes at the login screen and after logging
     in and verified that logs were included in crash
     reports: bdf766f0d6d1e066, a9d410e1a86f996b

Change-Id: I09e3cee23af108dc216d64aae85d78751d5649d4
Reviewed-by: Ben Chan <>
Tested-by: Daniel Erat <>
Commit-Queue: Daniel Erat <>
3 files changed
tree: 87c5ef9b10328011ba099e85bceeff43fa7c317e
  1. crash_reporter/