| OLD | NEW | 
|---|
| 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 namespace crash_keys { | 7 namespace crash_keys { | 
| 8 | 8 | 
|  | 9 // TODO(rsesek): This is true on Mac and Linux but not Windows. | 
|  | 10 static const size_t kSingleChunkLength = 255; | 
|  | 11 | 
|  | 12 size_t RegisterChromeCrashKeys() { | 
|  | 13   base::debug::CrashKey keys[] = { | 
|  | 14     // TODO(rsesek): Remove when done testing. Needed so arraysize > 0. | 
|  | 15     { "rsesek_key", 1 }, | 
|  | 16 #if defined(OS_MACOSX) | 
|  | 17     { mac::kFirstNSException, 1 }, | 
|  | 18     { mac::kFirstNSExceptionTrace, 1 }, | 
|  | 19     { mac::kLastNSException, 1 }, | 
|  | 20     { mac::kLastNSExceptionTrace, 1 }, | 
|  | 21     { mac::kNSException, 1 }, | 
|  | 22     { mac::kSendAction, 1 }, | 
|  | 23     { mac::kZombie, 1 }, | 
|  | 24     { mac::kZombieTrace, 1 }, | 
|  | 25     // content/: | 
|  | 26     { "channel_error_bt", 1 }, | 
|  | 27     { "remove_route_bt", 1 }, | 
|  | 28     { "rwhvm_window", 1 }, | 
|  | 29     // media/: | 
|  | 30     { "VideoCaptureDeviceQTKit", 1 }, | 
|  | 31 #endif | 
|  | 32   }; | 
|  | 33 | 
|  | 34   return base::debug::InitCrashKeys(keys, arraysize(keys), kSingleChunkLength); | 
|  | 35 } | 
|  | 36 | 
| 9 namespace mac { | 37 namespace mac { | 
| 10 | 38 | 
| 11 const char kFirstNSException[] = "firstexception"; | 39 const char kFirstNSException[] = "firstexception"; | 
| 12 const char kFirstNSExceptionTrace[] = "firstexception_bt"; | 40 const char kFirstNSExceptionTrace[] = "firstexception_bt"; | 
| 13 | 41 | 
| 14 const char kLastNSException[] = "lastexception"; | 42 const char kLastNSException[] = "lastexception"; | 
| 15 const char kLastNSExceptionTrace[] = "lastexception_bt"; | 43 const char kLastNSExceptionTrace[] = "lastexception_bt"; | 
| 16 | 44 | 
| 17 const char kNSException[] = "nsexception"; | 45 const char kNSException[] = "nsexception"; | 
| 18 | 46 | 
| 19 const char kSendAction[] = "sendaction"; | 47 const char kSendAction[] = "sendaction"; | 
| 20 | 48 | 
| 21 const char kZombie[] = "zombie"; | 49 const char kZombie[] = "zombie"; | 
| 22 const char kZombieTrace[] = "zombie_dealloc_bt"; | 50 const char kZombieTrace[] = "zombie_dealloc_bt"; | 
| 23 | 51 | 
| 24 }  // namespace mac | 52 }  // namespace mac | 
| 25 | 53 | 
| 26 }  // namespace crash_keys | 54 }  // namespace crash_keys | 
| OLD | NEW | 
|---|