summaryrefslogtreecommitdiff
path: root/libcutils/socket_local_server_unix.cpp
diff options
context:
space:
mode:
authorSteve Fung <stevefung@chromium.org>2015-02-12 23:31:20 -0800
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-02-16 08:43:56 +0000
commitf5767af079161b0d42a2a6fdbb54690f8384f798 (patch)
tree0f7b6510e7a9cb871945ec5b52b90e648c70510d /libcutils/socket_local_server_unix.cpp
parent6e13952269ad729594f2670b889bd806e9b0f3b3 (diff)
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>
Diffstat (limited to 'libcutils/socket_local_server_unix.cpp')
0 files changed, 0 insertions, 0 deletions