| Index: crash_collector.cc
|
| diff --git a/crash_collector.cc b/crash_collector.cc
|
| index afd72d1e129757c3a5f992abac0171d47d826057..bdad63f551e5263449dac4b4cfb79b686cd1b7db 100644
|
| --- a/crash_collector.cc
|
| +++ b/crash_collector.cc
|
| @@ -24,6 +24,7 @@ static const char kLsbRelease[] = "/etc/lsb-release";
|
| static const char kShellPath[] = "/bin/sh";
|
| static const char kSystemCrashPath[] = "/var/spool/crash";
|
| static const char kUserCrashPath[] = "/home/chronos/user/crash";
|
| +static const char kCrashTestInProgressPath[] = "/tmp/crash-test-in-progress";
|
|
|
| // Directory mode of the user crash spool directory.
|
| static const mode_t kUserCrashPathMode = 0755;
|
| @@ -410,3 +411,7 @@ void CrashCollector::WriteCrashMetaData(const FilePath &meta_path,
|
| logger_->LogError("Unable to write %s", meta_path.value().c_str());
|
| }
|
| }
|
| +
|
| +bool CrashCollector::IsCrashTestInProgress() {
|
| + return file_util::PathExists(FilePath(kCrashTestInProgressPath));
|
| +}
|
|
|