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

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

Issue 7849011: Refactor Mac crash key reporting - move to base/mac/crash_logging.{h,mm} (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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 | Annotate | Revision Log
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 // 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.
Scott Hess - ex-Googler 2011/09/08 19:46:46 Nice to be able to address this...
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698