| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 const char kNSException[] = "nsexception"; | 85 const char kNSException[] = "nsexception"; |
| 86 const char kNSExceptionTrace[] = "nsexception_bt"; | 86 const char kNSExceptionTrace[] = "nsexception_bt"; |
| 87 | 87 |
| 88 const char kSendAction[] = "sendaction"; | 88 const char kSendAction[] = "sendaction"; |
| 89 | 89 |
| 90 const char kNSEvent[] = "nsevent"; | 90 const char kNSEvent[] = "nsevent"; |
| 91 | 91 |
| 92 } // namespace mac | 92 } // namespace mac |
| 93 #endif | 93 #endif |
| 94 | 94 |
| 95 #if BUILDFLAG(ENABLE_KASKO) | |
| 96 const char kKaskoGuid[] = "kasko-guid"; | |
| 97 const char kKaskoEquivalentGuid[] = "kasko-equivalent-guid"; | |
| 98 #endif | |
| 99 | |
| 100 const char kViewCount[] = "view-count"; | 95 const char kViewCount[] = "view-count"; |
| 101 | 96 |
| 102 const char kZeroEncodeDetails[] = "zero-encode-details"; | 97 const char kZeroEncodeDetails[] = "zero-encode-details"; |
| 103 | 98 |
| 104 size_t RegisterChromeCrashKeys() { | 99 size_t RegisterChromeCrashKeys() { |
| 105 // The following keys may be chunked by the underlying crash logging system, | 100 // The following keys may be chunked by the underlying crash logging system, |
| 106 // but ultimately constitute a single key-value pair. | 101 // but ultimately constitute a single key-value pair. |
| 107 // | 102 // |
| 108 // If you're adding keys here, please also add them to the following lists: | 103 // If you're adding keys here, please also add them to the following lists: |
| 109 // 1. //blimp/engine/app/blimp_engine_crash_keys.cc and | 104 // 1. //blimp/engine/app/blimp_engine_crash_keys.cc and |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 { mac::kSendAction, kMediumSize }, | 165 { mac::kSendAction, kMediumSize }, |
| 171 { mac::kNSEvent, kMediumSize }, | 166 { mac::kNSEvent, kMediumSize }, |
| 172 { mac::kZombie, kMediumSize }, | 167 { mac::kZombie, kMediumSize }, |
| 173 { mac::kZombieTrace, kMediumSize }, | 168 { mac::kZombieTrace, kMediumSize }, |
| 174 // content/: | 169 // content/: |
| 175 { "channel_error_bt", kMediumSize }, | 170 { "channel_error_bt", kMediumSize }, |
| 176 { "remove_route_bt", kMediumSize }, | 171 { "remove_route_bt", kMediumSize }, |
| 177 { "rwhvm_window", kMediumSize }, | 172 { "rwhvm_window", kMediumSize }, |
| 178 // media/: | 173 // media/: |
| 179 #endif | 174 #endif |
| 180 #if BUILDFLAG(ENABLE_KASKO) | |
| 181 { kKaskoGuid, kSmallSize }, | |
| 182 { kKaskoEquivalentGuid, kSmallSize }, | |
| 183 #endif | |
| 184 { kBug464926CrashKey, kSmallSize }, | 175 { kBug464926CrashKey, kSmallSize }, |
| 185 { kViewCount, kSmallSize }, | 176 { kViewCount, kSmallSize }, |
| 186 | 177 |
| 187 // media/: | 178 // media/: |
| 188 #if defined(OS_WIN) | 179 #if defined(OS_WIN) |
| 189 { kHungAudioThreadDetails, kSmallSize }, | 180 { kHungAudioThreadDetails, kSmallSize }, |
| 190 #endif | 181 #endif |
| 191 { kZeroEncodeDetails, kSmallSize }, | 182 { kZeroEncodeDetails, kSmallSize }, |
| 192 | 183 |
| 193 // gin/: | 184 // gin/: |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 } | 370 } |
| 380 | 371 |
| 381 ScopedPrinterInfo::~ScopedPrinterInfo() { | 372 ScopedPrinterInfo::~ScopedPrinterInfo() { |
| 382 for (size_t i = 0; i < kPrinterInfoCount; ++i) { | 373 for (size_t i = 0; i < kPrinterInfoCount; ++i) { |
| 383 std::string key = base::StringPrintf(kPrinterInfo, i + 1); | 374 std::string key = base::StringPrintf(kPrinterInfo, i + 1); |
| 384 base::debug::ClearCrashKey(key); | 375 base::debug::ClearCrashKey(key); |
| 385 } | 376 } |
| 386 } | 377 } |
| 387 | 378 |
| 388 } // namespace crash_keys | 379 } // namespace crash_keys |
| OLD | NEW |