| 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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 { "swdh_register_cannot_scope_url", crash_keys::kLargeSize }, | 220 { "swdh_register_cannot_scope_url", crash_keys::kLargeSize }, |
| 221 { "swdh_register_cannot_script_url", crash_keys::kLargeSize }, | 221 { "swdh_register_cannot_script_url", crash_keys::kLargeSize }, |
| 222 | 222 |
| 223 // Temporary for https://crbug.com/619294. | 223 // Temporary for https://crbug.com/619294. |
| 224 { "swdh_unregister_cannot_host_url", crash_keys::kLargeSize }, | 224 { "swdh_unregister_cannot_host_url", crash_keys::kLargeSize }, |
| 225 { "swdh_unregister_cannot_scope_url", crash_keys::kLargeSize }, | 225 { "swdh_unregister_cannot_scope_url", crash_keys::kLargeSize }, |
| 226 | 226 |
| 227 // Temporary for https://crbug.com/630496. | 227 // Temporary for https://crbug.com/630496. |
| 228 { "swdh_get_registration_cannot_host_url", crash_keys::kLargeSize }, | 228 { "swdh_get_registration_cannot_host_url", crash_keys::kLargeSize }, |
| 229 { "swdh_get_registration_cannot_document_url", crash_keys::kLargeSize }, | 229 { "swdh_get_registration_cannot_document_url", crash_keys::kLargeSize }, |
| 230 |
| 231 { "LOG_FATAL", crash_keys::kLargeSize }, |
| 230 }; | 232 }; |
| 231 | 233 |
| 232 // This dynamic set of keys is used for sets of key value pairs when gathering | 234 // This dynamic set of keys is used for sets of key value pairs when gathering |
| 233 // a collection of data, like command line switches or extension IDs. | 235 // a collection of data, like command line switches or extension IDs. |
| 234 std::vector<base::debug::CrashKey> keys( | 236 std::vector<base::debug::CrashKey> keys( |
| 235 fixed_keys, fixed_keys + arraysize(fixed_keys)); | 237 fixed_keys, fixed_keys + arraysize(fixed_keys)); |
| 236 | 238 |
| 237 crash_keys::GetCrashKeysForCommandLineSwitches(&keys); | 239 crash_keys::GetCrashKeysForCommandLineSwitches(&keys); |
| 238 | 240 |
| 239 // Register the extension IDs. | 241 // Register the extension IDs. |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 } | 358 } |
| 357 | 359 |
| 358 ScopedPrinterInfo::~ScopedPrinterInfo() { | 360 ScopedPrinterInfo::~ScopedPrinterInfo() { |
| 359 for (size_t i = 0; i < kPrinterInfoCount; ++i) { | 361 for (size_t i = 0; i < kPrinterInfoCount; ++i) { |
| 360 std::string key = base::StringPrintf(kPrinterInfo, i + 1); | 362 std::string key = base::StringPrintf(kPrinterInfo, i + 1); |
| 361 base::debug::ClearCrashKey(key); | 363 base::debug::ClearCrashKey(key); |
| 362 } | 364 } |
| 363 } | 365 } |
| 364 | 366 |
| 365 } // namespace crash_keys | 367 } // namespace crash_keys |
| OLD | NEW |