From 2dcd1ae04c599025267f74edc298707ef6f94c0d Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Mon, 11 Apr 2016 10:04:48 +0200 Subject: update the location for breakpad as soon as we have access to profile Change-Id: I33b29c06fdc9ec9b6d4c7d5f1b6db6024f39e92e Reviewed-on: https://gerrit.libreoffice.org/24027 Tested-by: Jenkins Reviewed-by: Markus Mohrhard --- include/desktop/crashreport.hxx | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'include/desktop') diff --git a/include/desktop/crashreport.hxx b/include/desktop/crashreport.hxx index 05b1fd81a835..e58e387d0122 100644 --- a/include/desktop/crashreport.hxx +++ b/include/desktop/crashreport.hxx @@ -20,6 +20,11 @@ #include #include +namespace google_breakpad +{ +class ExceptionHandler; +} + /** * Provides access to the crash reporter service. * @@ -42,9 +47,17 @@ public: static void writeCommonInfo(); + static void storeExceptionHandler(google_breakpad::ExceptionHandler* pExceptionHandler); + + // when we create the ExceptionHandler we have no access to the user + // profile yet, so update when we have access + static void updateMinidumpLocation(); + private: static osl::Mutex maMutex; + + static google_breakpad::ExceptionHandler* mpExceptionHandler; }; // Add dummy methods for the non-breakpad case. That allows us to use -- cgit