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

Unified Diff: crash_dumper.h

Issue 2868032: Remove source from crash-reporter and crash-dumper as they are no longer necessary. (Closed) Base URL: ssh://git@chromiumos-git//crash.git
Patch Set: Created 10 years, 6 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 | « Makefile ('k') | crash_dumper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crash_dumper.h
diff --git a/crash_dumper.h b/crash_dumper.h
deleted file mode 100644
index 04e69e4664f061cfe9674987b5f38baeb0db868c..0000000000000000000000000000000000000000
--- a/crash_dumper.h
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CRASH_CRASH_DUMPER_H_
-#define CRASH_CRASH_DUMPER_H_
-
-// Class to manage crash handling and dumping. When Enable is called, all
-// crashes will be caught and stored to the appropriate crash directory.
-// The directory will be:
-// /home/chronos/user/crash - for all processes running as chronos
-// /var/spool/crash - for all other processes
-// The class takes care of creating the directories (even recreating them
-// at crash time in case the cryptohome mounting changes from Enable time.
-//
-// For most use cases, there is no need to include or call any functions
-// explicitly in this header file. Crash dumping is enabled just by linking
-// in libcrash_dumper.
-
-class CrashDumper {
- public:
- CrashDumper() {
- Enable();
- }
-
- ~CrashDumper() {
- if (IsEnabled()) {
- Disable();
- }
- }
-
- // Enable crash detection and dumping. Aborts if already enabled
- // or crash reporting cannot be enabled. If the cryptohome is mounted
- // while crash handling is enabled, later crashes may be lost.
- static void Enable();
-
- // Return if enabled.
- static bool IsEnabled();
-
- // Disable crash detection and dumping. Aborts if not enabled.
- static void Disable();
-};
-
-#endif // CRASH_CRASH_DUMPER_H_
« no previous file with comments | « Makefile ('k') | crash_dumper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698