| 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 // Temporary for https://crbug.com/591478. | 181 // Temporary for https://crbug.com/591478. |
| 182 { "initrf_parent_proxy_exists", kSmallSize }, | 182 { "initrf_parent_proxy_exists", kSmallSize }, |
| 183 { "initrf_render_view_is_live", kSmallSize }, | 183 { "initrf_render_view_is_live", kSmallSize }, |
| 184 { "initrf_parent_is_in_same_site_instance", kSmallSize}, | 184 { "initrf_parent_is_in_same_site_instance", kSmallSize}, |
| 185 { "initrf_parent_process_is_live", kSmallSize}, | 185 { "initrf_parent_process_is_live", kSmallSize}, |
| 186 { "initrf_root_is_in_same_site_instance", kSmallSize}, | 186 { "initrf_root_is_in_same_site_instance", kSmallSize}, |
| 187 { "initrf_root_is_in_same_site_instance_as_parent", kSmallSize}, | 187 { "initrf_root_is_in_same_site_instance_as_parent", kSmallSize}, |
| 188 { "initrf_root_process_is_live", kSmallSize}, | 188 { "initrf_root_process_is_live", kSmallSize}, |
| 189 { "initrf_root_proxy_is_live", kSmallSize}, | 189 { "initrf_root_proxy_is_live", kSmallSize}, |
| 190 | 190 |
| 191 // Temporary for http://crbug.com/621730 | |
| 192 { "postmessage_script_info", kLargeSize }, | |
| 193 | |
| 194 // Temporary for https://crbug.com/616149. | 191 // Temporary for https://crbug.com/616149. |
| 195 { "existing_extension_pref_value_type", crash_keys::kSmallSize }, | 192 { "existing_extension_pref_value_type", crash_keys::kSmallSize }, |
| 196 }; | 193 }; |
| 197 | 194 |
| 198 // This dynamic set of keys is used for sets of key value pairs when gathering | 195 // This dynamic set of keys is used for sets of key value pairs when gathering |
| 199 // a collection of data, like command line switches or extension IDs. | 196 // a collection of data, like command line switches or extension IDs. |
| 200 std::vector<base::debug::CrashKey> keys( | 197 std::vector<base::debug::CrashKey> keys( |
| 201 fixed_keys, fixed_keys + arraysize(fixed_keys)); | 198 fixed_keys, fixed_keys + arraysize(fixed_keys)); |
| 202 | 199 |
| 203 crash_keys::GetCrashKeysForCommandLineSwitches(&keys); | 200 crash_keys::GetCrashKeysForCommandLineSwitches(&keys); |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 } | 327 } |
| 331 | 328 |
| 332 ScopedPrinterInfo::~ScopedPrinterInfo() { | 329 ScopedPrinterInfo::~ScopedPrinterInfo() { |
| 333 for (size_t i = 0; i < kPrinterInfoCount; ++i) { | 330 for (size_t i = 0; i < kPrinterInfoCount; ++i) { |
| 334 std::string key = base::StringPrintf(kPrinterInfo, i + 1); | 331 std::string key = base::StringPrintf(kPrinterInfo, i + 1); |
| 335 base::debug::ClearCrashKey(key); | 332 base::debug::ClearCrashKey(key); |
| 336 } | 333 } |
| 337 } | 334 } |
| 338 | 335 |
| 339 } // namespace crash_keys | 336 } // namespace crash_keys |
| OLD | NEW |