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

Side by Side Diff: chrome/common/crash_keys.cc

Issue 12611026: [Mac] Record backtrace with nsexception logging. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: gramma Created 7 years, 9 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
« no previous file with comments | « chrome/common/crash_keys.h ('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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #include "chrome/common/crash_keys.h" 5 #include "chrome/common/crash_keys.h"
6 6
7 #if defined(OS_MACOSX) 7 #if defined(OS_MACOSX)
8 #include "breakpad/src/common/mac/SimpleStringDictionary.h" 8 #include "breakpad/src/common/mac/SimpleStringDictionary.h"
9 #elif defined(OS_WIN) 9 #elif defined(OS_WIN)
10 #include "breakpad/src/client/windows/common/ipc_protocol.h" 10 #include "breakpad/src/client/windows/common/ipc_protocol.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 // TODO(rsesek): Remove when done testing. Needed so arraysize > 0. 48 // TODO(rsesek): Remove when done testing. Needed so arraysize > 0.
49 { "rsesek_key", kSmallSize }, 49 { "rsesek_key", kSmallSize },
50 // content/: 50 // content/:
51 { "ppapi_path", kMediumSize }, 51 { "ppapi_path", kMediumSize },
52 #if defined(OS_MACOSX) 52 #if defined(OS_MACOSX)
53 { mac::kFirstNSException, kMediumSize }, 53 { mac::kFirstNSException, kMediumSize },
54 { mac::kFirstNSExceptionTrace, kMediumSize }, 54 { mac::kFirstNSExceptionTrace, kMediumSize },
55 { mac::kLastNSException, kMediumSize }, 55 { mac::kLastNSException, kMediumSize },
56 { mac::kLastNSExceptionTrace, kMediumSize }, 56 { mac::kLastNSExceptionTrace, kMediumSize },
57 { mac::kNSException, kMediumSize }, 57 { mac::kNSException, kMediumSize },
58 { mac::kNSExceptionTrace, kMediumSize },
58 { mac::kSendAction, kMediumSize }, 59 { mac::kSendAction, kMediumSize },
59 { mac::kZombie, kMediumSize }, 60 { mac::kZombie, kMediumSize },
60 { mac::kZombieTrace, kMediumSize }, 61 { mac::kZombieTrace, kMediumSize },
61 // content/: 62 // content/:
62 { "channel_error_bt", kMediumSize }, 63 { "channel_error_bt", kMediumSize },
63 { "remove_route_bt", kMediumSize }, 64 { "remove_route_bt", kMediumSize },
64 { "rwhvm_window", kMediumSize }, 65 { "rwhvm_window", kMediumSize },
65 // media/: 66 // media/:
66 { "VideoCaptureDeviceQTKit", kSmallSize }, 67 { "VideoCaptureDeviceQTKit", kSmallSize },
67 #endif 68 #endif
68 }; 69 };
69 70
70 return base::debug::InitCrashKeys(keys, arraysize(keys), kSingleChunkLength); 71 return base::debug::InitCrashKeys(keys, arraysize(keys), kSingleChunkLength);
71 } 72 }
72 73
73 #if defined(OS_MACOSX) 74 #if defined(OS_MACOSX)
74 namespace mac { 75 namespace mac {
75 76
76 const char kFirstNSException[] = "firstexception"; 77 const char kFirstNSException[] = "firstexception";
77 const char kFirstNSExceptionTrace[] = "firstexception_bt"; 78 const char kFirstNSExceptionTrace[] = "firstexception_bt";
78 79
79 const char kLastNSException[] = "lastexception"; 80 const char kLastNSException[] = "lastexception";
80 const char kLastNSExceptionTrace[] = "lastexception_bt"; 81 const char kLastNSExceptionTrace[] = "lastexception_bt";
81 82
82 const char kNSException[] = "nsexception"; 83 const char kNSException[] = "nsexception";
84 const char kNSExceptionTrace[] = "nsexception_bt";
83 85
84 const char kSendAction[] = "sendaction"; 86 const char kSendAction[] = "sendaction";
85 87
86 const char kZombie[] = "zombie"; 88 const char kZombie[] = "zombie";
87 const char kZombieTrace[] = "zombie_dealloc_bt"; 89 const char kZombieTrace[] = "zombie_dealloc_bt";
88 90
89 } // namespace mac 91 } // namespace mac
90 #endif 92 #endif
91 93
92 } // namespace crash_keys 94 } // namespace crash_keys
OLDNEW
« no previous file with comments | « chrome/common/crash_keys.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698