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

Unified Diff: chrome/common/crash_keys.cc

Issue 11761030: Create the crash key registration system and register some Mac-specific keys. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/crash_keys.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/crash_keys.cc
diff --git a/chrome/common/crash_keys.cc b/chrome/common/crash_keys.cc
index 55b0864c40e0fab3b81d8c0a2b9e7f35d07cd458..f5de54b9b468db7c0376771f3d4d4f73033b56c0 100644
--- a/chrome/common/crash_keys.cc
+++ b/chrome/common/crash_keys.cc
@@ -6,6 +6,34 @@
namespace crash_keys {
+// TODO(rsesek): This is true on Mac and Linux but not Windows.
+static const size_t kSingleChunkLength = 255;
+
+size_t RegisterChromeCrashKeys() {
+ base::debug::CrashKey keys[] = {
+ // TODO(rsesek): Remove when done testing. Needed so arraysize > 0.
+ { "rsesek_key", 1 },
+#if defined(OS_MACOSX)
+ { mac::kFirstNSException, 1 },
+ { mac::kFirstNSExceptionTrace, 1 },
+ { mac::kLastNSException, 1 },
+ { mac::kLastNSExceptionTrace, 1 },
+ { mac::kNSException, 1 },
+ { mac::kSendAction, 1 },
+ { mac::kZombie, 1 },
+ { mac::kZombieTrace, 1 },
+ // content/:
+ { "channel_error_bt", 1 },
+ { "remove_route_bt", 1 },
+ { "rwhvm_window", 1 },
+ // media/:
+ { "VideoCaptureDeviceQTKit", 1 },
+#endif
+ };
+
+ return base::debug::InitCrashKeys(keys, arraysize(keys), kSingleChunkLength);
+}
+
namespace mac {
const char kFirstNSException[] = "firstexception";
« 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