platform_system_core/crash_reporter
Steve Fung f5767af079 crash: Fix session manager D-Bus call service name
The D-Bus call to session manager was using the incorrect service
name field, causing the crash reporter session lookup to fail and
fallback to placing the crash in /home/chronos/crash.  Fix the
D-Bus call so that crashes are put in the right place.

Also, fixing this exposed an error with processing the results.
The previous D-Bus code treated an empty session response the
same as a D-Bus connection error, with the new code D-Bus errors
are handled separately, so also check whether the returned array
is empty.

BUG=chromium:458330
TEST=triggered crash with 'chrome://crash' page; crash files are
     placed in /home/chronos/user/crash
TEST=`test_that -b panther <IP> logging_UserCrash` passes

Change-Id: I77733adc5e4287d9eae83a749818d9cc38398c80
Reviewed-on: https://chromium-review.googlesource.com/249800
Reviewed-by: Dan Erat <derat@chromium.org>
Tested-by: Steve Fung <stevefung@chromium.org>
Commit-Queue: Steve Fung <stevefung@chromium.org>
2015-02-16 08:43:56 +00:00
..
init crash-reporter: disable device coredumps in verified mode 2014-11-26 06:07:52 +00:00
.project_alias crash: Shorten crash-reporter project alias. 2015-01-30 05:10:46 +00:00
99-crash-reporter.rules Add support for sending Atmel TP/TS error message 2013-06-18 16:11:36 -07:00
chrome_collector.cc crash: Remove glib from crash_reporter 2015-02-11 04:48:44 +00:00
chrome_collector.h crash: Remove glib from crash_reporter 2015-02-11 04:48:44 +00:00
chrome_collector_test.cc crash: Remove glib from crash_reporter 2015-02-11 04:48:44 +00:00
crash-reporter.gyp crash: Remove glib from crash_reporter 2015-02-11 04:48:44 +00:00
crash_collector.cc crash: Fix session manager D-Bus call service name 2015-02-16 08:43:56 +00:00
crash_collector.h crash: Remove glib from crash_reporter 2015-02-11 04:48:44 +00:00
crash_collector_test.cc crash: Remove glib from crash_reporter 2015-02-11 04:48:44 +00:00
crash_collector_test.h crash: Remove glib from crash_reporter 2015-02-11 04:48:44 +00:00
crash_reporter.cc crash: Remove glib from crash_reporter 2015-02-11 04:48:44 +00:00
crash_reporter_logs.conf crash-reporter: Use chromeos::KeyValueStore. 2015-01-29 21:35:39 +00:00
crash_reporter_logs_test.cc crash-reporter: Use chromeos::KeyValueStore. 2015-01-29 21:35:39 +00:00
crash_sender Revert "crash-reporter: Replace the crash_sender script by a service daemon." 2014-09-11 12:44:16 +00:00
kernel_collector.cc crash-reporter: add a sanity check for kernel dmesg records 2015-01-22 05:13:33 +00:00
kernel_collector.h crash-reporter: fix pstore detection 2014-09-25 10:45:28 +00:00
kernel_collector_test.cc crash: Remove glib from crash_reporter 2015-02-11 04:48:44 +00:00
kernel_collector_test.h crash: Remove glib from crash_reporter 2015-02-11 04:48:44 +00:00
kernel_log_collector.sh kernel_log_collector.sh : correct kernel message pattern 2013-06-19 16:19:38 -07:00
kernel_warning_collector.cc crash-reporter: Replace NULL with nullptr. 2014-09-19 02:59:36 +00:00
kernel_warning_collector.h crash-reporter: Include base/macros.h instead of base/basictypes.h 2014-09-03 22:47:54 +00:00
list_proxies.cc crash-reporter: Replace NULL with nullptr. 2014-09-19 02:59:36 +00:00
OWNERS crash-reporter: Update OWNERS file to set 'noparent'. 2014-03-27 20:36:00 +00:00
TEST_WARNING Collect and report kernel warnings. 2013-05-01 20:30:10 -07:00
testrunner.cc crash: Remove glib from crash_reporter 2015-02-11 04:48:44 +00:00
udev_collector.cc crash-reporter: Clean up angle brackets in template types. 2014-09-22 05:59:28 +00:00
udev_collector.h crash-reporter: Include base/macros.h instead of base/basictypes.h 2014-09-03 22:47:54 +00:00
udev_collector_test.cc crash: Remove glib from crash_reporter 2015-02-11 04:48:44 +00:00
unclean_shutdown_collector.cc Update code to include base/files/file_util.h 2014-09-09 21:00:34 +00:00
unclean_shutdown_collector.h crash-reporter: Include base/macros.h instead of base/basictypes.h 2014-09-03 22:47:54 +00:00
unclean_shutdown_collector_test.cc crash: Remove glib from crash_reporter 2015-02-11 04:48:44 +00:00
user_collector.cc crash-reporter: remove gflags dependency 2014-10-07 05:53:25 +00:00
user_collector.h crash-reporter: remove gflags dependency 2014-10-07 05:53:25 +00:00
user_collector_test.cc crash: Remove glib from crash_reporter 2015-02-11 04:48:44 +00:00
warn_collector.l crash reporter: avoid repeated warning collection 2014-02-25 04:03:09 +00:00
warn_collector_test.c crash-reporter: Fix coding style and cpplint issues. 2014-06-19 03:32:02 +00:00
warn_collector_test.sh Append function name/offset to kernel warning signature. 2013-12-17 01:32:09 +00:00
warn_collector_test_reporter.sh Collect and report kernel warnings. 2013-05-01 20:30:10 -07:00