diff options
Diffstat (limited to 'toolkit/crashreporter/breakpad-client/linux/crash_generation/client_info.h')
-rw-r--r-- | toolkit/crashreporter/breakpad-client/linux/crash_generation/client_info.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/toolkit/crashreporter/breakpad-client/linux/crash_generation/client_info.h b/toolkit/crashreporter/breakpad-client/linux/crash_generation/client_info.h index 3de2606b7b..80b70b045f 100644 --- a/toolkit/crashreporter/breakpad-client/linux/crash_generation/client_info.h +++ b/toolkit/crashreporter/breakpad-client/linux/crash_generation/client_info.h @@ -30,6 +30,8 @@ #ifndef CLIENT_LINUX_CRASH_GENERATION_CLIENT_INFO_H_ #define CLIENT_LINUX_CRASH_GENERATION_CLIENT_INFO_H_ +#include <sys/types.h> + namespace google_breakpad { class CrashGenerationServer; @@ -42,13 +44,13 @@ class ClientInfo { CrashGenerationServer* crash_server() const { return crash_server_; } pid_t pid() const { return pid_; } - void set_error_msg(nsCString &error_msg) { + void set_error_msg(char *error_msg) { had_error_ = true; error_msg_ = error_msg; } - const nsCString* error_msg() const { - return &error_msg_; + const char* error_msg() const { + return error_msg_; } bool had_error() const { @@ -59,8 +61,8 @@ class ClientInfo { CrashGenerationServer* crash_server_; pid_t pid_; bool had_error_ = false; - nsCString error_msg_; // Possible error message of the minidumper in - // case there was an error during dumping + char* error_msg_ = nullptr; // Possible error message of the minidumper in + // case there was an error during dumping }; } |