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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
81 const char kKaskoEquivalentGuid[] = "kasko-equivalent-guid"; | 81 const char kKaskoEquivalentGuid[] = "kasko-equivalent-guid"; |
82 #endif | 82 #endif |
83 | 83 |
84 const char kViewCount[] = "view-count"; | 84 const char kViewCount[] = "view-count"; |
85 | 85 |
86 const char kZeroEncodeDetails[] = "zero-encode-details"; | 86 const char kZeroEncodeDetails[] = "zero-encode-details"; |
87 | 87 |
88 size_t RegisterChromeCrashKeys() { | 88 size_t RegisterChromeCrashKeys() { |
89 // The following keys may be chunked by the underlying crash logging system, | 89 // The following keys may be chunked by the underlying crash logging system, |
90 // but ultimately constitute a single key-value pair. | 90 // but ultimately constitute a single key-value pair. |
91 // | |
92 // If you're adding keys here, please also add them to the list in | |
Kevin M
2016/05/02 22:05:32
Maintaining two parallel key lists seems risky, an
Robert Sesek
2016/05/02 22:07:00
The CL description mentions a bug to fix this issu
marcinjb
2016/05/03 18:06:58
Yeah, I've got something going in http://crrev.com
| |
93 // //blimp/engine/app/blimp_engine_crash_keys.cc | |
91 base::debug::CrashKey fixed_keys[] = { | 94 base::debug::CrashKey fixed_keys[] = { |
92 #if defined(OS_MACOSX) || defined(OS_WIN) | 95 #if defined(OS_MACOSX) || defined(OS_WIN) |
93 { kMetricsClientId, kSmallSize }, | 96 { kMetricsClientId, kSmallSize }, |
94 #else | 97 #else |
95 { kClientId, kSmallSize }, | 98 { kClientId, kSmallSize }, |
96 #endif | 99 #endif |
97 { kChannel, kSmallSize }, | 100 { kChannel, kSmallSize }, |
98 { kActiveURL, kLargeSize }, | 101 { kActiveURL, kLargeSize }, |
99 { kNumVariations, kSmallSize }, | 102 { kNumVariations, kSmallSize }, |
100 { kVariations, kLargeSize }, | 103 { kVariations, kLargeSize }, |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
320 } | 323 } |
321 | 324 |
322 ScopedPrinterInfo::~ScopedPrinterInfo() { | 325 ScopedPrinterInfo::~ScopedPrinterInfo() { |
323 for (size_t i = 0; i < kPrinterInfoCount; ++i) { | 326 for (size_t i = 0; i < kPrinterInfoCount; ++i) { |
324 std::string key = base::StringPrintf(kPrinterInfo, i + 1); | 327 std::string key = base::StringPrintf(kPrinterInfo, i + 1); |
325 base::debug::ClearCrashKey(key); | 328 base::debug::ClearCrashKey(key); |
326 } | 329 } |
327 } | 330 } |
328 | 331 |
329 } // namespace crash_keys | 332 } // namespace crash_keys |
OLD | NEW |