| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #import "chrome/app/breakpad_mac.h" | 5 #import "chrome/app/breakpad_mac.h" |
| 6 | 6 |
| 7 #import <Foundation/Foundation.h> | 7 #import <Foundation/Foundation.h> |
| 8 | 8 |
| 9 // Stubbed out versions of breakpad integration functions so we can compile | 9 // Stubbed out versions of breakpad integration functions so we can compile |
| 10 // without linking in Breakpad. | 10 // without linking in Breakpad. |
| 11 | 11 |
| 12 bool IsCrashReporterEnabled() { | 12 bool IsCrashReporterEnabled() { |
| 13 return false; | 13 return false; |
| 14 } | 14 } |
| 15 | 15 |
| 16 void InitCrashProcessInfo() { | 16 void InitCrashProcessInfo() { |
| 17 } | 17 } |
| 18 | 18 |
| 19 void DestructCrashReporter() { | 19 void DestructCrashReporter() { |
| 20 } | 20 } |
| 21 | 21 |
| 22 void InitCrashReporter() { | 22 void InitCrashReporter() { |
| 23 } | 23 } |
| 24 | |
| 25 void SetCrashKeyValue(NSString* key, NSString* value) { | |
| 26 } | |
| 27 | |
| 28 void ClearCrashKeyValue(NSString* key) { | |
| 29 } | |
| 30 | |
| 31 // NOTE(shess): These functions could clearly be replaced by stubs, | |
| 32 // but since they are seldom-used helpers, it seemed more reasonable | |
| 33 // to duplicate them from the primary implementation in | |
| 34 // breakpad_mac.mm. | |
| 35 ScopedCrashKey::ScopedCrashKey(NSString* key, NSString* value) | |
| 36 : crash_key_([key retain]) { | |
| 37 SetCrashKeyValue(crash_key_.get(), value); | |
| 38 } | |
| 39 | |
| 40 ScopedCrashKey::~ScopedCrashKey() { | |
| 41 ClearCrashKeyValue(crash_key_.get()); | |
| 42 } | |
| OLD | NEW |