Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(161)

Side by Side Diff: chrome/app/breakpad_mac.mm

Issue 115493: Fix for breakpad not generating a minidump in certain cases on OSX. (Closed)
Patch Set: Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « base/debug_util_mac.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « base/debug_util_mac.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698