| 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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 // Temporary for https://crbug.com/668633. | 215 // Temporary for https://crbug.com/668633. |
| 216 {"swdh_set_hosted_version_worker_pid", crash_keys::kSmallSize}, | 216 {"swdh_set_hosted_version_worker_pid", crash_keys::kSmallSize}, |
| 217 {"swdh_set_hosted_version_host_pid", crash_keys::kSmallSize}, | 217 {"swdh_set_hosted_version_host_pid", crash_keys::kSmallSize}, |
| 218 {"swdh_set_hosted_version_is_new_process", crash_keys::kSmallSize}, | 218 {"swdh_set_hosted_version_is_new_process", crash_keys::kSmallSize}, |
| 219 {"swdh_set_hosted_version_restart_count", crash_keys::kSmallSize}, | 219 {"swdh_set_hosted_version_restart_count", crash_keys::kSmallSize}, |
| 220 | 220 |
| 221 // Temporary for https://crbug.com/697745. | 221 // Temporary for https://crbug.com/697745. |
| 222 {"engine_params", crash_keys::kMediumSize}, | 222 {"engine_params", crash_keys::kMediumSize}, |
| 223 {"engine1_params", crash_keys::kMediumSize}, | 223 {"engine1_params", crash_keys::kMediumSize}, |
| 224 {"engine2_params", crash_keys::kMediumSize}, | 224 {"engine2_params", crash_keys::kMediumSize}, |
| 225 |
| 226 // Temporary for http://crbug.com/703649. |
| 227 {"field_trial_shmem_create_error", crash_keys::kSmallSize}, |
| 228 {"field_trial_shmem_map_error", crash_keys::kSmallSize}, |
| 225 }; | 229 }; |
| 226 | 230 |
| 227 // This dynamic set of keys is used for sets of key value pairs when gathering | 231 // This dynamic set of keys is used for sets of key value pairs when gathering |
| 228 // a collection of data, like command line switches or extension IDs. | 232 // a collection of data, like command line switches or extension IDs. |
| 229 std::vector<base::debug::CrashKey> keys( | 233 std::vector<base::debug::CrashKey> keys( |
| 230 fixed_keys, fixed_keys + arraysize(fixed_keys)); | 234 fixed_keys, fixed_keys + arraysize(fixed_keys)); |
| 231 | 235 |
| 232 crash_keys::GetCrashKeysForCommandLineSwitches(&keys); | 236 crash_keys::GetCrashKeysForCommandLineSwitches(&keys); |
| 233 | 237 |
| 234 // Register the extension IDs. | 238 // Register the extension IDs. |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 } | 355 } |
| 352 | 356 |
| 353 ScopedPrinterInfo::~ScopedPrinterInfo() { | 357 ScopedPrinterInfo::~ScopedPrinterInfo() { |
| 354 for (size_t i = 0; i < kPrinterInfoCount; ++i) { | 358 for (size_t i = 0; i < kPrinterInfoCount; ++i) { |
| 355 std::string key = base::StringPrintf(kPrinterInfo, i + 1); | 359 std::string key = base::StringPrintf(kPrinterInfo, i + 1); |
| 356 base::debug::ClearCrashKey(key); | 360 base::debug::ClearCrashKey(key); |
| 357 } | 361 } |
| 358 } | 362 } |
| 359 | 363 |
| 360 } // namespace crash_keys | 364 } // namespace crash_keys |
| OLD | NEW |