| 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 list: | 103 // If you're adding keys here, please also add them to the following list: |
| 109 // chrome/app/chrome_crash_reporter_client_win.cc::RegisterCrashKeysHelper(). | 104 // chrome/app/chrome_crash_reporter_client_win.cc::RegisterCrashKeysHelper(). |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 { mac::kSendAction, kMediumSize }, | 163 { mac::kSendAction, kMediumSize }, |
| 169 { mac::kNSEvent, kMediumSize }, | 164 { mac::kNSEvent, kMediumSize }, |
| 170 { mac::kZombie, kMediumSize }, | 165 { mac::kZombie, kMediumSize }, |
| 171 { mac::kZombieTrace, kMediumSize }, | 166 { mac::kZombieTrace, kMediumSize }, |
| 172 // content/: | 167 // content/: |
| 173 { "channel_error_bt", kMediumSize }, | 168 { "channel_error_bt", kMediumSize }, |
| 174 { "remove_route_bt", kMediumSize }, | 169 { "remove_route_bt", kMediumSize }, |
| 175 { "rwhvm_window", kMediumSize }, | 170 { "rwhvm_window", kMediumSize }, |
| 176 // media/: | 171 // media/: |
| 177 #endif | 172 #endif |
| 178 #if BUILDFLAG(ENABLE_KASKO) | |
| 179 { kKaskoGuid, kSmallSize }, | |
| 180 { kKaskoEquivalentGuid, kSmallSize }, | |
| 181 #endif | |
| 182 { kBug464926CrashKey, kSmallSize }, | 173 { kBug464926CrashKey, kSmallSize }, |
| 183 { kViewCount, kSmallSize }, | 174 { kViewCount, kSmallSize }, |
| 184 | 175 |
| 185 // media/: | 176 // media/: |
| 186 #if defined(OS_WIN) | 177 #if defined(OS_WIN) |
| 187 { kHungAudioThreadDetails, kSmallSize }, | 178 { kHungAudioThreadDetails, kSmallSize }, |
| 188 #endif | 179 #endif |
| 189 { kZeroEncodeDetails, kSmallSize }, | 180 { kZeroEncodeDetails, kSmallSize }, |
| 190 | 181 |
| 191 // gin/: | 182 // gin/: |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 } | 375 } |
| 385 | 376 |
| 386 ScopedPrinterInfo::~ScopedPrinterInfo() { | 377 ScopedPrinterInfo::~ScopedPrinterInfo() { |
| 387 for (size_t i = 0; i < kPrinterInfoCount; ++i) { | 378 for (size_t i = 0; i < kPrinterInfoCount; ++i) { |
| 388 std::string key = base::StringPrintf(kPrinterInfo, i + 1); | 379 std::string key = base::StringPrintf(kPrinterInfo, i + 1); |
| 389 base::debug::ClearCrashKey(key); | 380 base::debug::ClearCrashKey(key); |
| 390 } | 381 } |
| 391 } | 382 } |
| 392 | 383 |
| 393 } // namespace crash_keys | 384 } // namespace crash_keys |
| OLD | NEW |