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 28 matching lines...) Expand all Loading... |
39 #if defined(OS_WIN) | 39 #if defined(OS_WIN) |
40 const char kHungRendererOutstandingAckCount[] = "hung-outstanding-acks"; | 40 const char kHungRendererOutstandingAckCount[] = "hung-outstanding-acks"; |
41 const char kHungRendererOutstandingEventType[] = "hung-outstanding-event-type"; | 41 const char kHungRendererOutstandingEventType[] = "hung-outstanding-event-type"; |
42 const char kHungRendererLastEventType[] = "hung-last-event-type"; | 42 const char kHungRendererLastEventType[] = "hung-last-event-type"; |
43 const char kHungRendererReason[] = "hung-reason"; | 43 const char kHungRendererReason[] = "hung-reason"; |
44 | 44 |
45 const char kThirdPartyModulesLoaded[] = "third-party-modules-loaded"; | 45 const char kThirdPartyModulesLoaded[] = "third-party-modules-loaded"; |
46 const char kThirdPartyModulesNotLoaded[] = "third-party-modules-not-loaded"; | 46 const char kThirdPartyModulesNotLoaded[] = "third-party-modules-not-loaded"; |
47 | 47 |
48 const char kIsEnterpriseManaged[] = "is-enterprise-managed"; | 48 const char kIsEnterpriseManaged[] = "is-enterprise-managed"; |
| 49 |
| 50 // Registry values used to determine Chrome's update channel; see |
| 51 // https://crbug.com/579504. |
| 52 const char kApValue[] = "ap"; |
| 53 const char kCohortName[] = "cohort-name"; |
49 #endif | 54 #endif |
50 | 55 |
51 const char kInputEventFilterSendFailure[] = "input-event-filter-send-failure"; | 56 const char kInputEventFilterSendFailure[] = "input-event-filter-send-failure"; |
52 | 57 |
53 const char kPrinterInfo[] = "prn-info-%" PRIuS; | 58 const char kPrinterInfo[] = "prn-info-%" PRIuS; |
54 | 59 |
55 #if defined(OS_CHROMEOS) | 60 #if defined(OS_CHROMEOS) |
56 const char kNumberOfUsers[] = "num-users"; | 61 const char kNumberOfUsers[] = "num-users"; |
57 // Temporary for https://crbug.com/660960 | 62 // Temporary for https://crbug.com/660960 |
58 const char kLastGoodCloseStack[] = "last-good-close-stack"; | 63 const char kLastGoodCloseStack[] = "last-good-close-stack"; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 #else | 103 #else |
99 {kClientId, kSmallSize}, | 104 {kClientId, kSmallSize}, |
100 #endif | 105 #endif |
101 {kChannel, kSmallSize}, | 106 {kChannel, kSmallSize}, |
102 {kActiveURL, kLargeSize}, | 107 {kActiveURL, kLargeSize}, |
103 {kNumVariations, kSmallSize}, | 108 {kNumVariations, kSmallSize}, |
104 {kVariations, kHugeSize}, | 109 {kVariations, kHugeSize}, |
105 {kNumExtensionsCount, kSmallSize}, | 110 {kNumExtensionsCount, kSmallSize}, |
106 {kShutdownType, kSmallSize}, | 111 {kShutdownType, kSmallSize}, |
107 {kBrowserUnpinTrace, kMediumSize}, | 112 {kBrowserUnpinTrace, kMediumSize}, |
| 113 #if defined(OS_WIN) |
| 114 {kApValue, kSmallSize}, |
| 115 {kCohortName, kSmallSize}, |
| 116 #endif // defined(OS_WIN) |
108 #if !defined(OS_ANDROID) | 117 #if !defined(OS_ANDROID) |
109 {gpu::crash_keys::kGPUVendorID, kSmallSize}, | 118 {gpu::crash_keys::kGPUVendorID, kSmallSize}, |
110 {gpu::crash_keys::kGPUDeviceID, kSmallSize}, | 119 {gpu::crash_keys::kGPUDeviceID, kSmallSize}, |
111 #endif | 120 #endif |
112 {gpu::crash_keys::kGPUDriverVersion, kSmallSize}, | 121 {gpu::crash_keys::kGPUDriverVersion, kSmallSize}, |
113 {gpu::crash_keys::kGPUPixelShaderVersion, kSmallSize}, | 122 {gpu::crash_keys::kGPUPixelShaderVersion, kSmallSize}, |
114 {gpu::crash_keys::kGPUVertexShaderVersion, kSmallSize}, | 123 {gpu::crash_keys::kGPUVertexShaderVersion, kSmallSize}, |
115 #if defined(OS_MACOSX) | 124 #if defined(OS_MACOSX) |
116 {gpu::crash_keys::kGPUGLVersion, kSmallSize}, | 125 {gpu::crash_keys::kGPUGLVersion, kSmallSize}, |
117 #elif defined(OS_POSIX) | 126 #elif defined(OS_POSIX) |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 } | 379 } |
371 | 380 |
372 ScopedPrinterInfo::~ScopedPrinterInfo() { | 381 ScopedPrinterInfo::~ScopedPrinterInfo() { |
373 for (size_t i = 0; i < kPrinterInfoCount; ++i) { | 382 for (size_t i = 0; i < kPrinterInfoCount; ++i) { |
374 std::string key = base::StringPrintf(kPrinterInfo, i + 1); | 383 std::string key = base::StringPrintf(kPrinterInfo, i + 1); |
375 base::debug::ClearCrashKey(key); | 384 base::debug::ClearCrashKey(key); |
376 } | 385 } |
377 } | 386 } |
378 | 387 |
379 } // namespace crash_keys | 388 } // namespace crash_keys |
OLD | NEW |