| 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/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/format_macros.h" | 8 #include "base/format_macros.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/strings/string_split.h" | 10 #include "base/strings/string_split.h" |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 const char kGPUGLVersion[] = "gpu-glver"; | 82 const char kGPUGLVersion[] = "gpu-glver"; |
| 83 #elif defined(OS_POSIX) | 83 #elif defined(OS_POSIX) |
| 84 const char kGPUVendor[] = "gpu-gl-vendor"; | 84 const char kGPUVendor[] = "gpu-gl-vendor"; |
| 85 const char kGPURenderer[] = "gpu-gl-renderer"; | 85 const char kGPURenderer[] = "gpu-gl-renderer"; |
| 86 #endif | 86 #endif |
| 87 | 87 |
| 88 const char kPrinterInfo[] = "prn-info-%" PRIuS; | 88 const char kPrinterInfo[] = "prn-info-%" PRIuS; |
| 89 | 89 |
| 90 #if defined(OS_CHROMEOS) | 90 #if defined(OS_CHROMEOS) |
| 91 const char kNumberOfUsers[] = "num-users"; | 91 const char kNumberOfUsers[] = "num-users"; |
| 92 | |
| 93 const char kNameOfWindowWithDestroyedLayer[] = "window_destroyed_layer"; | |
| 94 #endif | 92 #endif |
| 95 | 93 |
| 96 #if defined(OS_MACOSX) | 94 #if defined(OS_MACOSX) |
| 97 namespace mac { | 95 namespace mac { |
| 98 | 96 |
| 99 const char kFirstNSException[] = "firstexception"; | 97 const char kFirstNSException[] = "firstexception"; |
| 100 const char kFirstNSExceptionTrace[] = "firstexception_bt"; | 98 const char kFirstNSExceptionTrace[] = "firstexception_bt"; |
| 101 | 99 |
| 102 const char kLastNSException[] = "lastexception"; | 100 const char kLastNSException[] = "lastexception"; |
| 103 const char kLastNSExceptionTrace[] = "lastexception_bt"; | 101 const char kLastNSExceptionTrace[] = "lastexception_bt"; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 #elif defined(OS_POSIX) | 136 #elif defined(OS_POSIX) |
| 139 { kGPUVendor, kSmallSize }, | 137 { kGPUVendor, kSmallSize }, |
| 140 { kGPURenderer, kSmallSize }, | 138 { kGPURenderer, kSmallSize }, |
| 141 #endif | 139 #endif |
| 142 | 140 |
| 143 // content/: | 141 // content/: |
| 144 { "ppapi_path", kMediumSize }, | 142 { "ppapi_path", kMediumSize }, |
| 145 { "subresource_url", kLargeSize }, | 143 { "subresource_url", kLargeSize }, |
| 146 #if defined(OS_CHROMEOS) | 144 #if defined(OS_CHROMEOS) |
| 147 { kNumberOfUsers, kSmallSize }, | 145 { kNumberOfUsers, kSmallSize }, |
| 148 { kNameOfWindowWithDestroyedLayer, kSmallSize }, | |
| 149 #endif | 146 #endif |
| 150 #if defined(OS_MACOSX) | 147 #if defined(OS_MACOSX) |
| 151 { mac::kFirstNSException, kMediumSize }, | 148 { mac::kFirstNSException, kMediumSize }, |
| 152 { mac::kFirstNSExceptionTrace, kMediumSize }, | 149 { mac::kFirstNSExceptionTrace, kMediumSize }, |
| 153 { mac::kLastNSException, kMediumSize }, | 150 { mac::kLastNSException, kMediumSize }, |
| 154 { mac::kLastNSExceptionTrace, kMediumSize }, | 151 { mac::kLastNSExceptionTrace, kMediumSize }, |
| 155 { mac::kNSException, kMediumSize }, | 152 { mac::kNSException, kMediumSize }, |
| 156 { mac::kNSExceptionTrace, kMediumSize }, | 153 { mac::kNSExceptionTrace, kMediumSize }, |
| 157 { mac::kSendAction, kMediumSize }, | 154 { mac::kSendAction, kMediumSize }, |
| 158 { mac::kZombie, kMediumSize }, | 155 { mac::kZombie, kMediumSize }, |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 } | 349 } |
| 353 | 350 |
| 354 ScopedPrinterInfo::~ScopedPrinterInfo() { | 351 ScopedPrinterInfo::~ScopedPrinterInfo() { |
| 355 for (size_t i = 0; i < kPrinterInfoCount; ++i) { | 352 for (size_t i = 0; i < kPrinterInfoCount; ++i) { |
| 356 std::string key = base::StringPrintf(kPrinterInfo, i + 1); | 353 std::string key = base::StringPrintf(kPrinterInfo, i + 1); |
| 357 base::debug::ClearCrashKey(key); | 354 base::debug::ClearCrashKey(key); |
| 358 } | 355 } |
| 359 } | 356 } |
| 360 | 357 |
| 361 } // namespace crash_keys | 358 } // namespace crash_keys |
| OLD | NEW |