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 #include "base/base_switches.h" | 9 #include "base/base_switches.h" |
10 #import "base/basictypes.h" | 10 #import "base/basictypes.h" |
(...skipping 27 matching lines...) Expand all Loading... | |
38 | 38 |
39 #endif // !defined(GOOGLE_CHROME_BUILD) | 39 #endif // !defined(GOOGLE_CHROME_BUILD) |
40 | 40 |
41 namespace { | 41 namespace { |
42 | 42 |
43 BreakpadRef gBreakpadRef = NULL; | 43 BreakpadRef gBreakpadRef = NULL; |
44 | 44 |
45 } // namespace | 45 } // namespace |
46 | 46 |
47 bool IsCrashReporterEnabled() { | 47 bool IsCrashReporterEnabled() { |
48 return gBreakpadRef == NULL; | 48 return gBreakpadRef != NULL; |
John Grabowski
2009/05/19 00:11:50
DOH!!!!!
| |
49 } | 49 } |
50 | 50 |
51 void DestructCrashReporter() { | 51 void DestructCrashReporter() { |
52 if (gBreakpadRef) { | 52 if (gBreakpadRef) { |
53 BreakpadRelease(gBreakpadRef); | 53 BreakpadRelease(gBreakpadRef); |
54 gBreakpadRef = NULL; | 54 gBreakpadRef = NULL; |
55 } | 55 } |
56 } | 56 } |
57 | 57 |
58 // Only called for a branded build of Chrome.app. | 58 // Only called for a branded build of Chrome.app. |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
138 BreakpadSetKeyValue(gBreakpadRef, key, value); | 138 BreakpadSetKeyValue(gBreakpadRef, key, value); |
139 } | 139 } |
140 | 140 |
141 void ClearCrashKeyValue(NSString* key) { | 141 void ClearCrashKeyValue(NSString* key) { |
142 if (gBreakpadRef == NULL) { | 142 if (gBreakpadRef == NULL) { |
143 return; | 143 return; |
144 } | 144 } |
145 | 145 |
146 BreakpadRemoveKeyValue(gBreakpadRef, key); | 146 BreakpadRemoveKeyValue(gBreakpadRef, key); |
147 } | 147 } |
OLD | NEW |