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 |
| 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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 } | 328 } |
326 | 329 |
327 ScopedPrinterInfo::~ScopedPrinterInfo() { | 330 ScopedPrinterInfo::~ScopedPrinterInfo() { |
328 for (size_t i = 0; i < kPrinterInfoCount; ++i) { | 331 for (size_t i = 0; i < kPrinterInfoCount; ++i) { |
329 std::string key = base::StringPrintf(kPrinterInfo, i + 1); | 332 std::string key = base::StringPrintf(kPrinterInfo, i + 1); |
330 base::debug::ClearCrashKey(key); | 333 base::debug::ClearCrashKey(key); |
331 } | 334 } |
332 } | 335 } |
333 | 336 |
334 } // namespace crash_keys | 337 } // namespace crash_keys |
OLD | NEW |