| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 #if defined(OS_WIN) | 51 #if defined(OS_WIN) |
| 52 const char kHungAudioThreadDetails[] = "hung-audio-thread-details"; | 52 const char kHungAudioThreadDetails[] = "hung-audio-thread-details"; |
| 53 | 53 |
| 54 const char kHungRendererOutstandingAckCount[] = "hung-outstanding-acks"; | 54 const char kHungRendererOutstandingAckCount[] = "hung-outstanding-acks"; |
| 55 const char kHungRendererOutstandingEventType[] = "hung-outstanding-event-type"; | 55 const char kHungRendererOutstandingEventType[] = "hung-outstanding-event-type"; |
| 56 const char kHungRendererLastEventType[] = "hung-last-event-type"; | 56 const char kHungRendererLastEventType[] = "hung-last-event-type"; |
| 57 const char kHungRendererReason[] = "hung-reason"; | 57 const char kHungRendererReason[] = "hung-reason"; |
| 58 | 58 |
| 59 const char kThirdPartyModulesLoaded[] = "third-party-modules-loaded"; | 59 const char kThirdPartyModulesLoaded[] = "third-party-modules-loaded"; |
| 60 const char kThirdPartyModulesNotLoaded[] = "third-party-modules-not-loaded"; | 60 const char kThirdPartyModulesNotLoaded[] = "third-party-modules-not-loaded"; |
| 61 | |
| 62 const char kEnrolledToDomain[] = "enrolled-to-domain"; | |
| 63 #endif | 61 #endif |
| 64 | 62 |
| 65 const char kInputEventFilterSendFailure[] = "input-event-filter-send-failure"; | 63 const char kInputEventFilterSendFailure[] = "input-event-filter-send-failure"; |
| 66 | 64 |
| 67 const char kPrinterInfo[] = "prn-info-%" PRIuS; | 65 const char kPrinterInfo[] = "prn-info-%" PRIuS; |
| 68 | 66 |
| 69 #if defined(OS_CHROMEOS) | 67 #if defined(OS_CHROMEOS) |
| 70 const char kNumberOfUsers[] = "num-users"; | 68 const char kNumberOfUsers[] = "num-users"; |
| 71 #endif | 69 #endif |
| 72 | 70 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 { "ppapi_path", kMediumSize }, | 136 { "ppapi_path", kMediumSize }, |
| 139 { "subresource_url", kLargeSize }, | 137 { "subresource_url", kLargeSize }, |
| 140 { "total-discardable-memory-allocated", kSmallSize }, | 138 { "total-discardable-memory-allocated", kSmallSize }, |
| 141 #if defined(OS_WIN) | 139 #if defined(OS_WIN) |
| 142 { kHungRendererOutstandingAckCount, kSmallSize }, | 140 { kHungRendererOutstandingAckCount, kSmallSize }, |
| 143 { kHungRendererOutstandingEventType, kSmallSize }, | 141 { kHungRendererOutstandingEventType, kSmallSize }, |
| 144 { kHungRendererLastEventType, kSmallSize }, | 142 { kHungRendererLastEventType, kSmallSize }, |
| 145 { kHungRendererReason, kSmallSize }, | 143 { kHungRendererReason, kSmallSize }, |
| 146 { kThirdPartyModulesLoaded, kSmallSize }, | 144 { kThirdPartyModulesLoaded, kSmallSize }, |
| 147 { kThirdPartyModulesNotLoaded, kSmallSize }, | 145 { kThirdPartyModulesNotLoaded, kSmallSize }, |
| 148 { kEnrolledToDomain, kSmallSize }, | |
| 149 #endif | 146 #endif |
| 150 { kInputEventFilterSendFailure, kSmallSize }, | 147 { kInputEventFilterSendFailure, kSmallSize }, |
| 151 #if defined(OS_CHROMEOS) | 148 #if defined(OS_CHROMEOS) |
| 152 { kNumberOfUsers, kSmallSize }, | 149 { kNumberOfUsers, kSmallSize }, |
| 153 #endif | 150 #endif |
| 154 #if defined(OS_MACOSX) | 151 #if defined(OS_MACOSX) |
| 155 { mac::kFirstNSException, kMediumSize }, | 152 { mac::kFirstNSException, kMediumSize }, |
| 156 { mac::kFirstNSExceptionTrace, kMediumSize }, | 153 { mac::kFirstNSExceptionTrace, kMediumSize }, |
| 157 { mac::kLastNSException, kMediumSize }, | 154 { mac::kLastNSException, kMediumSize }, |
| 158 { mac::kLastNSExceptionTrace, kMediumSize }, | 155 { mac::kLastNSExceptionTrace, kMediumSize }, |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 } | 375 } |
| 379 | 376 |
| 380 ScopedPrinterInfo::~ScopedPrinterInfo() { | 377 ScopedPrinterInfo::~ScopedPrinterInfo() { |
| 381 for (size_t i = 0; i < kPrinterInfoCount; ++i) { | 378 for (size_t i = 0; i < kPrinterInfoCount; ++i) { |
| 382 std::string key = base::StringPrintf(kPrinterInfo, i + 1); | 379 std::string key = base::StringPrintf(kPrinterInfo, i + 1); |
| 383 base::debug::ClearCrashKey(key); | 380 base::debug::ClearCrashKey(key); |
| 384 } | 381 } |
| 385 } | 382 } |
| 386 | 383 |
| 387 } // namespace crash_keys | 384 } // namespace crash_keys |
| OLD | NEW |