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