| Index: chrome/app/breakpad_mac.mm
|
| diff --git a/chrome/app/breakpad_mac.mm b/chrome/app/breakpad_mac.mm
|
| index 840ac470139ab6faa9a7f66289ed46ffba0d3a27..eb69d369f72f6e097396562de581a0ecd02715c2 100644
|
| --- a/chrome/app/breakpad_mac.mm
|
| +++ b/chrome/app/breakpad_mac.mm
|
| @@ -30,6 +30,26 @@ namespace {
|
|
|
| BreakpadRef gBreakpadRef = NULL;
|
|
|
| +void SetCrashKeyValue(NSString* key, NSString* value) {
|
| + // Comment repeated from header to prevent confusion:
|
| + // IMPORTANT: On OS X, the key/value pairs are sent to the crash server
|
| + // out of bounds and not recorded on disk in the minidump, this means
|
| + // that if you look at the minidump file locally you won't see them!
|
| + if (gBreakpadRef == NULL) {
|
| + return;
|
| + }
|
| +
|
| + BreakpadAddUploadParameter(gBreakpadRef, key, value);
|
| +}
|
| +
|
| +void ClearCrashKeyValue(NSString* key) {
|
| + if (gBreakpadRef == NULL) {
|
| + return;
|
| + }
|
| +
|
| + BreakpadRemoveUploadParameter(gBreakpadRef, key);
|
| +}
|
| +
|
| } // namespace
|
|
|
| bool IsCrashReporterEnabled() {
|
| @@ -155,8 +175,8 @@ void InitCrashReporter() {
|
|
|
| // Enable child process crashes to include the page URL.
|
| // TODO: Should this only be done for certain process types?
|
| - child_process_logging::SetCrashKeyFunctions(SetCrashKeyValue,
|
| - ClearCrashKeyValue);
|
| + base::mac::SetCrashKeyFunctions(SetCrashKeyValue,
|
| + ClearCrashKeyValue);
|
|
|
| if (!is_browser) {
|
| // Get the guid from the command line switch.
|
| @@ -183,33 +203,3 @@ void InitCrashProcessInfo() {
|
| // Store process type in crash dump.
|
| SetCrashKeyValue(@"ptype", process_type);
|
| }
|
| -
|
| -void SetCrashKeyValue(NSString* key, NSString* value) {
|
| - // Comment repeated from header to prevent confusion:
|
| - // IMPORTANT: On OS X, the key/value pairs are sent to the crash server
|
| - // out of bounds and not recorded on disk in the minidump, this means
|
| - // that if you look at the minidump file locally you won't see them!
|
| - if (gBreakpadRef == NULL) {
|
| - return;
|
| - }
|
| -
|
| - BreakpadAddUploadParameter(gBreakpadRef, key, value);
|
| -}
|
| -
|
| -void ClearCrashKeyValue(NSString* key) {
|
| - if (gBreakpadRef == NULL) {
|
| - return;
|
| - }
|
| -
|
| - BreakpadRemoveUploadParameter(gBreakpadRef, key);
|
| -}
|
| -
|
| -// NOTE(shess): These also exist in breakpad_mac_stubs.mm.
|
| -ScopedCrashKey::ScopedCrashKey(NSString* key, NSString* value)
|
| - : crash_key_([key retain]) {
|
| - SetCrashKeyValue(crash_key_.get(), value);
|
| -}
|
| -
|
| -ScopedCrashKey::~ScopedCrashKey() {
|
| - ClearCrashKeyValue(crash_key_.get());
|
| -}
|
|
|