crash-reporter: Fix overzealous crash purging in guest mode.

Previously, if crash_sender was invoked during a guest session all crashes that
could be accessed (i.e. that were stored outside of user directories) were
deleted.  This is fixed by re-ordering some of the conditions in send_crashes().

The problem had been introduced by 57f6efa4:

TEST=unit tests passed
TEST=try success on amd64-generic-full

Change-Id: I931665891eca8e645135f7f08c15b3086fcb7d73
Reviewed-by: Mike Frysinger <>
Commit-Queue: Thiemo Nagel <>
Tested-by: Thiemo Nagel <>
1 file changed
tree: 9ce29ef79804ac839e66b2d2add08fb4db6a4fd5
  1. crash_reporter/