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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 // | 91 // |
92 // If you're adding keys here, please also add them to the list in | 92 // If you're adding keys here, please also add them to the following lists: |
93 // //blimp/engine/app/blimp_engine_crash_keys.cc | 93 // 1. //blimp/engine/app/blimp_engine_crash_keys.cc and |
| 94 // 2. //chrome/app/chrome_crash_reporter_client_win.cc:: |
| 95 // RegisterCrashKeysHelper(). |
94 base::debug::CrashKey fixed_keys[] = { | 96 base::debug::CrashKey fixed_keys[] = { |
95 #if defined(OS_MACOSX) || defined(OS_WIN) | 97 #if defined(OS_MACOSX) || defined(OS_WIN) |
96 { kMetricsClientId, kSmallSize }, | 98 { kMetricsClientId, kSmallSize }, |
97 #else | 99 #else |
98 { kClientId, kSmallSize }, | 100 { kClientId, kSmallSize }, |
99 #endif | 101 #endif |
100 { kChannel, kSmallSize }, | 102 { kChannel, kSmallSize }, |
101 { kActiveURL, kLargeSize }, | 103 { kActiveURL, kLargeSize }, |
102 { kNumVariations, kSmallSize }, | 104 { kNumVariations, kSmallSize }, |
103 { kVariations, kLargeSize }, | 105 { kVariations, kLargeSize }, |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 } | 341 } |
340 | 342 |
341 ScopedPrinterInfo::~ScopedPrinterInfo() { | 343 ScopedPrinterInfo::~ScopedPrinterInfo() { |
342 for (size_t i = 0; i < kPrinterInfoCount; ++i) { | 344 for (size_t i = 0; i < kPrinterInfoCount; ++i) { |
343 std::string key = base::StringPrintf(kPrinterInfo, i + 1); | 345 std::string key = base::StringPrintf(kPrinterInfo, i + 1); |
344 base::debug::ClearCrashKey(key); | 346 base::debug::ClearCrashKey(key); |
345 } | 347 } |
346 } | 348 } |
347 | 349 |
348 } // namespace crash_keys | 350 } // namespace crash_keys |
OLD | NEW |