| 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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 { "origin_mismatch_transition", crash_keys::kSmallSize }, | 236 { "origin_mismatch_transition", crash_keys::kSmallSize }, |
| 237 { "origin_mismatch_redirects", crash_keys::kSmallSize }, | 237 { "origin_mismatch_redirects", crash_keys::kSmallSize }, |
| 238 { "origin_mismatch_same_page", crash_keys::kSmallSize }, | 238 { "origin_mismatch_same_page", crash_keys::kSmallSize }, |
| 239 | 239 |
| 240 // Temporary for https://crbug.com/612711. | 240 // Temporary for https://crbug.com/612711. |
| 241 { "aci_wrong_sp_extension_id", kSmallSize }, | 241 { "aci_wrong_sp_extension_id", kSmallSize }, |
| 242 | 242 |
| 243 // Temporary for https://crbug.com/616149. | 243 // Temporary for https://crbug.com/616149. |
| 244 { "existing_extension_pref_value_type", crash_keys::kSmallSize }, | 244 { "existing_extension_pref_value_type", crash_keys::kSmallSize }, |
| 245 | 245 |
| 246 // Temporary for https://crbug.com/630495. | |
| 247 { "swdh_register_cannot_host_url", crash_keys::kLargeSize }, | |
| 248 { "swdh_register_cannot_scope_url", crash_keys::kLargeSize }, | |
| 249 { "swdh_register_cannot_script_url", crash_keys::kLargeSize }, | |
| 250 | |
| 251 // Temporary for https://crbug.com/630496. | |
| 252 { "swdh_get_registration_cannot_host_url", crash_keys::kLargeSize }, | |
| 253 { "swdh_get_registration_cannot_document_url", crash_keys::kLargeSize }, | |
| 254 | |
| 255 // Temporary for https://crbug.com/668633. | 246 // Temporary for https://crbug.com/668633. |
| 256 { "swdh_set_hosted_version_worker_pid", crash_keys::kSmallSize }, | 247 { "swdh_set_hosted_version_worker_pid", crash_keys::kSmallSize }, |
| 257 { "swdh_set_hosted_version_host_pid", crash_keys::kSmallSize }, | 248 { "swdh_set_hosted_version_host_pid", crash_keys::kSmallSize }, |
| 258 }; | 249 }; |
| 259 | 250 |
| 260 // This dynamic set of keys is used for sets of key value pairs when gathering | 251 // This dynamic set of keys is used for sets of key value pairs when gathering |
| 261 // a collection of data, like command line switches or extension IDs. | 252 // a collection of data, like command line switches or extension IDs. |
| 262 std::vector<base::debug::CrashKey> keys( | 253 std::vector<base::debug::CrashKey> keys( |
| 263 fixed_keys, fixed_keys + arraysize(fixed_keys)); | 254 fixed_keys, fixed_keys + arraysize(fixed_keys)); |
| 264 | 255 |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 } | 375 } |
| 385 | 376 |
| 386 ScopedPrinterInfo::~ScopedPrinterInfo() { | 377 ScopedPrinterInfo::~ScopedPrinterInfo() { |
| 387 for (size_t i = 0; i < kPrinterInfoCount; ++i) { | 378 for (size_t i = 0; i < kPrinterInfoCount; ++i) { |
| 388 std::string key = base::StringPrintf(kPrinterInfo, i + 1); | 379 std::string key = base::StringPrintf(kPrinterInfo, i + 1); |
| 389 base::debug::ClearCrashKey(key); | 380 base::debug::ClearCrashKey(key); |
| 390 } | 381 } |
| 391 } | 382 } |
| 392 | 383 |
| 393 } // namespace crash_keys | 384 } // namespace crash_keys |
| OLD | NEW |