Index: user_collector.cc |
diff --git a/user_collector.cc b/user_collector.cc |
index 6e6c76596c649c3a6b696c4f35daeb951c747ab9..13df5ce91d4a9c2a62190df1cc31c0b17ae08bfd 100644 |
--- a/user_collector.cc |
+++ b/user_collector.cc |
@@ -472,6 +472,13 @@ bool UserCollector::HandleCrash(const std::string &crash_attributes, |
logger_->LogWarning("Received crash notification for %s[%d] sig %d (%s)", |
exec.c_str(), pid, signal, handling_string); |
+ // For developer builds, we always want to keep the crash reports unless |
+ // we're testing the crash facilities themselves. |
+ if (file_util::PathExists(FilePath(kLeaveCoreFile)) && |
+ !IsCrashTestInProgress()) { |
+ feedback = true; |
+ } |
+ |
if (feedback) { |
count_crash_function_(); |