Add "Renderer" suffix in name when crashing in renderer process.
This commit is contained in:
parent
62f200d252
commit
e7d25385b0
1 changed files with 5 additions and 2 deletions
|
@ -20,15 +20,16 @@ class ScopedCrashReporter {
|
||||||
ScopedCrashReporter() : is_browser_(!base::mac::IsBackgroundOnlyProcess()) {
|
ScopedCrashReporter() : is_browser_(!base::mac::IsBackgroundOnlyProcess()) {
|
||||||
NSMutableDictionary* parameters =
|
NSMutableDictionary* parameters =
|
||||||
[NSMutableDictionary dictionaryWithCapacity:4];
|
[NSMutableDictionary dictionaryWithCapacity:4];
|
||||||
[parameters setValue:@"Atom-Shell" forKey:@BREAKPAD_PRODUCT];
|
|
||||||
[parameters setValue:@"GitHub, Inc" forKey:@BREAKPAD_VENDOR];
|
[parameters setValue:@"GitHub, Inc" forKey:@BREAKPAD_VENDOR];
|
||||||
|
|
||||||
// Use application's version for crashes in browser.
|
|
||||||
if (is_browser_) {
|
if (is_browser_) {
|
||||||
|
[parameters setValue:@"Atom-Shell" forKey:@BREAKPAD_PRODUCT];
|
||||||
|
// Use application's version for crashes in browser.
|
||||||
std::string version = atom::Browser::Get()->GetVersion();
|
std::string version = atom::Browser::Get()->GetVersion();
|
||||||
[parameters setValue:base::SysUTF8ToNSString(version)
|
[parameters setValue:base::SysUTF8ToNSString(version)
|
||||||
forKey:@BREAKPAD_VERSION];
|
forKey:@BREAKPAD_VERSION];
|
||||||
} else {
|
} else {
|
||||||
|
[parameters setValue:@"Atom-Shell Renderer" forKey:@BREAKPAD_PRODUCT];
|
||||||
[parameters setValue:@ATOM_VERSION_STRING forKey:@BREAKPAD_VERSION];
|
[parameters setValue:@ATOM_VERSION_STRING forKey:@BREAKPAD_VERSION];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -49,6 +50,8 @@ class ScopedCrashReporter {
|
||||||
|
|
||||||
~ScopedCrashReporter() { if (breakpad_) BreakpadRelease(breakpad_); }
|
~ScopedCrashReporter() { if (breakpad_) BreakpadRelease(breakpad_); }
|
||||||
|
|
||||||
|
bool is_browser() const { return is_browser_; }
|
||||||
|
|
||||||
void SetKey(const std::string& key, const std::string& value) {
|
void SetKey(const std::string& key, const std::string& value) {
|
||||||
BreakpadSetKeyValue(breakpad_,
|
BreakpadSetKeyValue(breakpad_,
|
||||||
base::SysUTF8ToNSString(key),
|
base::SysUTF8ToNSString(key),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue