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