diff options
author | rsesek@chromium.org <rsesek@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2014-05-05 20:36:06 +0000 |
---|---|---|
committer | rsesek@chromium.org <rsesek@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2014-05-05 20:36:06 +0000 |
commit | 44ba0b2050f22376d623663652395de079a4b713 (patch) | |
tree | a250cd2d020782046d4f3b0052e55941dc724f9e /src/client/linux/handler | |
parent | Fixing a build break on Linux. (diff) | |
download | breakpad-44ba0b2050f22376d623663652395de079a4b713.tar.xz |
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
Diffstat (limited to 'src/client/linux/handler')
-rw-r--r-- | src/client/linux/handler/exception_handler.h | 6 |
1 files changed, 5 insertions, 1 deletions
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 |