Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1061)

Unified Diff: crash_collector.cc

Issue 6615021: Modify crash-reporter to collect crash information for unofficial builds. (Closed) Base URL: http://git.chromium.org/git/crash-reporter.git@master
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « crash_collector.h ('k') | user_collector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
+}
« no previous file with comments | « crash_collector.h ('k') | user_collector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698