| Index: crash_collector.cc
|
| diff --git a/crash_collector.cc b/crash_collector.cc
|
| index 9600b44a5edbc8ef6294ad7a935187c46bdec040..5247d916ca0339a2db8df013e89b882dd53f7a0e 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;
|
| @@ -349,3 +350,7 @@ void CrashCollector::WriteCrashMetaData(const FilePath &meta_path,
|
| LOG(ERROR) << "Unable to write " << meta_path.value();
|
| }
|
| }
|
| +
|
| +bool CrashCollector::IsCrashTestInProgress() {
|
| + return file_util::PathExists(FilePath(kCrashTestInProgressPath));
|
| +}
|
|
|