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