| 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 #include "base/base_switches.h" | 7 #include "base/base_switches.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/format_macros.h" | 9 #include "base/format_macros.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 const char kLastNSException[] = "lastexception"; | 82 const char kLastNSException[] = "lastexception"; |
| 83 const char kLastNSExceptionTrace[] = "lastexception_bt"; | 83 const char kLastNSExceptionTrace[] = "lastexception_bt"; |
| 84 | 84 |
| 85 const char kNSException[] = "nsexception"; | 85 const char kNSException[] = "nsexception"; |
| 86 const char kNSExceptionTrace[] = "nsexception_bt"; | 86 const char kNSExceptionTrace[] = "nsexception_bt"; |
| 87 | 87 |
| 88 const char kSendAction[] = "sendaction"; | 88 const char kSendAction[] = "sendaction"; |
| 89 | 89 |
| 90 const char kNSEvent[] = "nsevent"; | 90 const char kNSEvent[] = "nsevent"; |
| 91 | 91 |
| 92 const char kToolbarNibInfo[] = "toolbar-nib-info"; |
| 93 |
| 92 } // namespace mac | 94 } // namespace mac |
| 93 #endif | 95 #endif |
| 94 | 96 |
| 95 const char kViewCount[] = "view-count"; | 97 const char kViewCount[] = "view-count"; |
| 96 | 98 |
| 97 const char kZeroEncodeDetails[] = "zero-encode-details"; | 99 const char kZeroEncodeDetails[] = "zero-encode-details"; |
| 98 | 100 |
| 99 size_t RegisterChromeCrashKeys() { | 101 size_t RegisterChromeCrashKeys() { |
| 100 // The following keys may be chunked by the underlying crash logging system, | 102 // The following keys may be chunked by the underlying crash logging system, |
| 101 // but ultimately constitute a single key-value pair. | 103 // but ultimately constitute a single key-value pair. |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 #endif | 157 #endif |
| 156 #if defined(OS_MACOSX) | 158 #if defined(OS_MACOSX) |
| 157 { mac::kFirstNSException, kMediumSize }, | 159 { mac::kFirstNSException, kMediumSize }, |
| 158 { mac::kFirstNSExceptionTrace, kMediumSize }, | 160 { mac::kFirstNSExceptionTrace, kMediumSize }, |
| 159 { mac::kLastNSException, kMediumSize }, | 161 { mac::kLastNSException, kMediumSize }, |
| 160 { mac::kLastNSExceptionTrace, kMediumSize }, | 162 { mac::kLastNSExceptionTrace, kMediumSize }, |
| 161 { mac::kNSException, kMediumSize }, | 163 { mac::kNSException, kMediumSize }, |
| 162 { mac::kNSExceptionTrace, kMediumSize }, | 164 { mac::kNSExceptionTrace, kMediumSize }, |
| 163 { mac::kSendAction, kMediumSize }, | 165 { mac::kSendAction, kMediumSize }, |
| 164 { mac::kNSEvent, kMediumSize }, | 166 { mac::kNSEvent, kMediumSize }, |
| 167 { mac::kToolbarNibInfo, kMediumSize }, |
| 165 { mac::kZombie, kMediumSize }, | 168 { mac::kZombie, kMediumSize }, |
| 166 { mac::kZombieTrace, kMediumSize }, | 169 { mac::kZombieTrace, kMediumSize }, |
| 167 // content/: | 170 // content/: |
| 168 { "channel_error_bt", kMediumSize }, | 171 { "channel_error_bt", kMediumSize }, |
| 169 { "remove_route_bt", kMediumSize }, | 172 { "remove_route_bt", kMediumSize }, |
| 170 { "rwhvm_window", kMediumSize }, | 173 { "rwhvm_window", kMediumSize }, |
| 171 // media/: | 174 // media/: |
| 172 #endif | 175 #endif |
| 173 { kBug464926CrashKey, kSmallSize }, | 176 { kBug464926CrashKey, kSmallSize }, |
| 174 { kViewCount, kSmallSize }, | 177 { kViewCount, kSmallSize }, |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 375 } | 378 } |
| 376 | 379 |
| 377 ScopedPrinterInfo::~ScopedPrinterInfo() { | 380 ScopedPrinterInfo::~ScopedPrinterInfo() { |
| 378 for (size_t i = 0; i < kPrinterInfoCount; ++i) { | 381 for (size_t i = 0; i < kPrinterInfoCount; ++i) { |
| 379 std::string key = base::StringPrintf(kPrinterInfo, i + 1); | 382 std::string key = base::StringPrintf(kPrinterInfo, i + 1); |
| 380 base::debug::ClearCrashKey(key); | 383 base::debug::ClearCrashKey(key); |
| 381 } | 384 } |
| 382 } | 385 } |
| 383 | 386 |
| 384 } // namespace crash_keys | 387 } // namespace crash_keys |
| OLD | NEW |