| 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"; |
| 61 #endif | 63 #endif |
| 62 | 64 |
| 63 const char kInputEventFilterSendFailure[] = "input-event-filter-send-failure"; | 65 const char kInputEventFilterSendFailure[] = "input-event-filter-send-failure"; |
| 64 | 66 |
| 65 const char kPrinterInfo[] = "prn-info-%" PRIuS; | 67 const char kPrinterInfo[] = "prn-info-%" PRIuS; |
| 66 | 68 |
| 67 #if defined(OS_CHROMEOS) | 69 #if defined(OS_CHROMEOS) |
| 68 const char kNumberOfUsers[] = "num-users"; | 70 const char kNumberOfUsers[] = "num-users"; |
| 69 #endif | 71 #endif |
| 70 | 72 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 { "ppapi_path", kMediumSize }, | 141 { "ppapi_path", kMediumSize }, |
| 140 { "subresource_url", kLargeSize }, | 142 { "subresource_url", kLargeSize }, |
| 141 { "total-discardable-memory-allocated", kSmallSize }, | 143 { "total-discardable-memory-allocated", kSmallSize }, |
| 142 #if defined(OS_WIN) | 144 #if defined(OS_WIN) |
| 143 { kHungRendererOutstandingAckCount, kSmallSize }, | 145 { kHungRendererOutstandingAckCount, kSmallSize }, |
| 144 { kHungRendererOutstandingEventType, kSmallSize }, | 146 { kHungRendererOutstandingEventType, kSmallSize }, |
| 145 { kHungRendererLastEventType, kSmallSize }, | 147 { kHungRendererLastEventType, kSmallSize }, |
| 146 { kHungRendererReason, kSmallSize }, | 148 { kHungRendererReason, kSmallSize }, |
| 147 { kThirdPartyModulesLoaded, kSmallSize }, | 149 { kThirdPartyModulesLoaded, kSmallSize }, |
| 148 { kThirdPartyModulesNotLoaded, kSmallSize }, | 150 { kThirdPartyModulesNotLoaded, kSmallSize }, |
| 151 { kEnrolledToDomain, kSmallSize }, |
| 149 #endif | 152 #endif |
| 150 { kInputEventFilterSendFailure, kSmallSize }, | 153 { kInputEventFilterSendFailure, kSmallSize }, |
| 151 #if defined(OS_CHROMEOS) | 154 #if defined(OS_CHROMEOS) |
| 152 { kNumberOfUsers, kSmallSize }, | 155 { kNumberOfUsers, kSmallSize }, |
| 153 #endif | 156 #endif |
| 154 #if defined(OS_MACOSX) | 157 #if defined(OS_MACOSX) |
| 155 { mac::kFirstNSException, kMediumSize }, | 158 { mac::kFirstNSException, kMediumSize }, |
| 156 { mac::kFirstNSExceptionTrace, kMediumSize }, | 159 { mac::kFirstNSExceptionTrace, kMediumSize }, |
| 157 { mac::kLastNSException, kMediumSize }, | 160 { mac::kLastNSException, kMediumSize }, |
| 158 { mac::kLastNSExceptionTrace, kMediumSize }, | 161 { mac::kLastNSExceptionTrace, kMediumSize }, |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 } | 382 } |
| 380 | 383 |
| 381 ScopedPrinterInfo::~ScopedPrinterInfo() { | 384 ScopedPrinterInfo::~ScopedPrinterInfo() { |
| 382 for (size_t i = 0; i < kPrinterInfoCount; ++i) { | 385 for (size_t i = 0; i < kPrinterInfoCount; ++i) { |
| 383 std::string key = base::StringPrintf(kPrinterInfo, i + 1); | 386 std::string key = base::StringPrintf(kPrinterInfo, i + 1); |
| 384 base::debug::ClearCrashKey(key); | 387 base::debug::ClearCrashKey(key); |
| 385 } | 388 } |
| 386 } | 389 } |
| 387 | 390 |
| 388 } // namespace crash_keys | 391 } // namespace crash_keys |
| OLD | NEW |