| 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 #endif | 93 #endif |
| 94 | 94 |
| 95 const char kViewCount[] = "view-count"; | 95 const char kViewCount[] = "view-count"; |
| 96 | 96 |
| 97 const char kZeroEncodeDetails[] = "zero-encode-details"; | 97 const char kZeroEncodeDetails[] = "zero-encode-details"; |
| 98 | 98 |
| 99 size_t RegisterChromeCrashKeys() { | 99 size_t RegisterChromeCrashKeys() { |
| 100 // 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, |
| 101 // but ultimately constitute a single key-value pair. | 101 // but ultimately constitute a single key-value pair. |
| 102 // | 102 // |
| 103 // 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 lists: |
| 104 // chrome/app/chrome_crash_reporter_client_win.cc::RegisterCrashKeysHelper(), | 104 // chrome/app/chrome_crash_reporter_client_win.cc::RegisterCrashKeysHelper(), |
| 105 // and consider adding the new keys to the following list as well: | |
| 106 // android_webview/common/crash_reporter/crash_keys.cc:: | 105 // android_webview/common/crash_reporter/crash_keys.cc:: |
| 107 // RegisterWebViewCrashKeys(). | 106 // RegisterWebViewCrashKeys(). |
| 108 base::debug::CrashKey fixed_keys[] = { | 107 base::debug::CrashKey fixed_keys[] = { |
| 109 #if defined(OS_MACOSX) || defined(OS_WIN) | 108 #if defined(OS_MACOSX) || defined(OS_WIN) |
| 110 { kMetricsClientId, kSmallSize }, | 109 { kMetricsClientId, kSmallSize }, |
| 111 #else | 110 #else |
| 112 { kClientId, kSmallSize }, | 111 { kClientId, kSmallSize }, |
| 113 #endif | 112 #endif |
| 114 { kChannel, kSmallSize }, | 113 { kChannel, kSmallSize }, |
| 115 { kActiveURL, kLargeSize }, | 114 { kActiveURL, kLargeSize }, |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 } | 372 } |
| 374 | 373 |
| 375 ScopedPrinterInfo::~ScopedPrinterInfo() { | 374 ScopedPrinterInfo::~ScopedPrinterInfo() { |
| 376 for (size_t i = 0; i < kPrinterInfoCount; ++i) { | 375 for (size_t i = 0; i < kPrinterInfoCount; ++i) { |
| 377 std::string key = base::StringPrintf(kPrinterInfo, i + 1); | 376 std::string key = base::StringPrintf(kPrinterInfo, i + 1); |
| 378 base::debug::ClearCrashKey(key); | 377 base::debug::ClearCrashKey(key); |
| 379 } | 378 } |
| 380 } | 379 } |
| 381 | 380 |
| 382 } // namespace crash_keys | 381 } // namespace crash_keys |
| OLD | NEW |