| 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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 | 243 |
| 244 // Temporary for https://crbug.com/612711. | 244 // Temporary for https://crbug.com/612711. |
| 245 { "aci_wrong_sp_extension_id", kSmallSize }, | 245 { "aci_wrong_sp_extension_id", kSmallSize }, |
| 246 | 246 |
| 247 // Temporary for https://crbug.com/616149. | 247 // Temporary for https://crbug.com/616149. |
| 248 { "existing_extension_pref_value_type", crash_keys::kSmallSize }, | 248 { "existing_extension_pref_value_type", crash_keys::kSmallSize }, |
| 249 | 249 |
| 250 // Temporary for https://crbug.com/668633. | 250 // Temporary for https://crbug.com/668633. |
| 251 { "swdh_set_hosted_version_worker_pid", crash_keys::kSmallSize }, | 251 { "swdh_set_hosted_version_worker_pid", crash_keys::kSmallSize }, |
| 252 { "swdh_set_hosted_version_host_pid", crash_keys::kSmallSize }, | 252 { "swdh_set_hosted_version_host_pid", crash_keys::kSmallSize }, |
| 253 { "swdh_set_hosted_version_is_new_process", crash_keys::kSmallSize }, |
| 254 { "swdh_set_hosted_version_restart_count", crash_keys::kSmallSize }, |
| 253 }; | 255 }; |
| 254 | 256 |
| 255 // This dynamic set of keys is used for sets of key value pairs when gathering | 257 // This dynamic set of keys is used for sets of key value pairs when gathering |
| 256 // a collection of data, like command line switches or extension IDs. | 258 // a collection of data, like command line switches or extension IDs. |
| 257 std::vector<base::debug::CrashKey> keys( | 259 std::vector<base::debug::CrashKey> keys( |
| 258 fixed_keys, fixed_keys + arraysize(fixed_keys)); | 260 fixed_keys, fixed_keys + arraysize(fixed_keys)); |
| 259 | 261 |
| 260 crash_keys::GetCrashKeysForCommandLineSwitches(&keys); | 262 crash_keys::GetCrashKeysForCommandLineSwitches(&keys); |
| 261 | 263 |
| 262 // Register the extension IDs. | 264 // Register the extension IDs. |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 } | 381 } |
| 380 | 382 |
| 381 ScopedPrinterInfo::~ScopedPrinterInfo() { | 383 ScopedPrinterInfo::~ScopedPrinterInfo() { |
| 382 for (size_t i = 0; i < kPrinterInfoCount; ++i) { | 384 for (size_t i = 0; i < kPrinterInfoCount; ++i) { |
| 383 std::string key = base::StringPrintf(kPrinterInfo, i + 1); | 385 std::string key = base::StringPrintf(kPrinterInfo, i + 1); |
| 384 base::debug::ClearCrashKey(key); | 386 base::debug::ClearCrashKey(key); |
| 385 } | 387 } |
| 386 } | 388 } |
| 387 | 389 |
| 388 } // namespace crash_keys | 390 } // namespace crash_keys |
| OLD | NEW |