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

Unified Diff: chrome/app/breakpad_linux.cc

Issue 489002: Linux: Implement RecordBreakpadStatusUMA. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years 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 | « chrome/app/breakpad_linux.h ('k') | chrome/browser/browser_main_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/app/breakpad_linux.cc
===================================================================
--- chrome/app/breakpad_linux.cc (revision 34212)
+++ chrome/app/breakpad_linux.cc (working copy)
@@ -38,6 +38,7 @@
static const char kUploadURL[] =
"https://clients2.google.com/cr/report";
+static bool is_crash_reporter_enabled = false;
static uint64_t uptime = 0;
// Writes the value |v| as 16 hex characters to the memory pointed at by
@@ -682,6 +683,7 @@
}
void EnableCrashDumping(const bool unattended) {
+ is_crash_reporter_enabled = true;
if (unattended) {
FilePath dumps_path("/tmp");
PathService::Get(chrome::DIR_CRASH_DUMPS, &dumps_path);
@@ -760,6 +762,7 @@
void EnableNonBrowserCrashDumping() {
const int fd = Singleton<base::GlobalDescriptors>()->Get(kCrashDumpSignal);
+ is_crash_reporter_enabled = true;
// We deliberately leak this object.
google_breakpad::ExceptionHandler* handler =
new google_breakpad::ExceptionHandler("" /* unused */, NULL, NULL,
@@ -807,3 +810,7 @@
else
uptime = 0;
}
+
+bool IsCrashReporterEnabled() {
+ return is_crash_reporter_enabled;
+}
« no previous file with comments | « chrome/app/breakpad_linux.h ('k') | chrome/browser/browser_main_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698