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