| Index: components/crash/app/breakpad_linux.cc
|
| diff --git a/components/crash/app/breakpad_linux.cc b/components/crash/app/breakpad_linux.cc
|
| index 3bfd96d38c0acc9c3f372a331a510715b0f18b16..622b4bae01beac7919716228f2c56b7f5dd12553 100644
|
| --- a/components/crash/app/breakpad_linux.cc
|
| +++ b/components/crash/app/breakpad_linux.cc
|
| @@ -1313,16 +1313,15 @@ void HandleCrashDump(const BreakpadInfo& info) {
|
| MimeWriter writer(temp_file_fd, mime_boundary);
|
| #endif
|
| {
|
| - // TODO(thestig) Do not use this inside a compromised context.
|
| - std::string product_name;
|
| - std::string version;
|
| + const char* product_name = "";
|
| + const char* version = "";
|
|
|
| GetCrashReporterClient()->GetProductNameAndVersion(&product_name, &version);
|
|
|
| writer.AddBoundary();
|
| - writer.AddPairString("prod", product_name.c_str());
|
| + writer.AddPairString("prod", product_name);
|
| writer.AddBoundary();
|
| - writer.AddPairString("ver", version.c_str());
|
| + writer.AddPairString("ver", version);
|
| writer.AddBoundary();
|
| if (info.pid > 0) {
|
| char pid_value_buf[kUint64StringSize];
|
|
|