From 44ba0b2050f22376d623663652395de079a4b713 Mon Sep 17 00:00:00 2001 From: "rsesek@chromium.org" Date: Mon, 5 May 2014 20:36:06 +0000 Subject: Make the Linux CrashGenerationClient an interface. Also allow it to be set on the ExceptionHandler. This will allow Chromium's implementation to be properly treated as an out-of-process handler. BUG=https://code.google.com/p/chromium/issues/detail?id=349600 R=mark@chromium.org Review URL: https://breakpad.appspot.com/2664002 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1324 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/client/linux/handler/exception_handler.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/client/linux/handler/exception_handler.h') diff --git a/src/client/linux/handler/exception_handler.h b/src/client/linux/handler/exception_handler.h index e906e7a7..1de38616 100644 --- a/src/client/linux/handler/exception_handler.h +++ b/src/client/linux/handler/exception_handler.h @@ -146,6 +146,10 @@ class ExceptionHandler { crash_handler_ = callback; } + void set_crash_generation_client(CrashGenerationClient* client) { + crash_generation_client_.reset(client); + } + // Writes a minidump immediately. This can be used to capture the execution // state independently of a crash. // Returns true on success. @@ -200,7 +204,7 @@ class ExceptionHandler { // Returns whether out-of-process dump generation is used or not. bool IsOutOfProcess() const { - return crash_generation_client_.get() != NULL; + return crash_generation_client_.get() != NULL; } // Add information about a memory mapping. This can be used if -- cgit v1.2.1