| 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 { "commit_proxy_id", kSmallSize }, | 162 { "commit_proxy_id", kSmallSize }, |
| 163 { "commit_view_id", kSmallSize }, | 163 { "commit_view_id", kSmallSize }, |
| 164 { "commit_main_render_frame_id", kSmallSize }, | 164 { "commit_main_render_frame_id", kSmallSize }, |
| 165 { "newproxy_proxy_id", kSmallSize }, | 165 { "newproxy_proxy_id", kSmallSize }, |
| 166 { "newproxy_view_id", kSmallSize }, | 166 { "newproxy_view_id", kSmallSize }, |
| 167 { "newproxy_opener_id", kSmallSize }, | 167 { "newproxy_opener_id", kSmallSize }, |
| 168 { "newproxy_parent_id", kSmallSize }, | 168 { "newproxy_parent_id", kSmallSize }, |
| 169 { "rvinit_view_id", kSmallSize }, | 169 { "rvinit_view_id", kSmallSize }, |
| 170 { "rvinit_proxy_id", kSmallSize }, | 170 { "rvinit_proxy_id", kSmallSize }, |
| 171 { "rvinit_main_frame_id", kSmallSize }, | 171 { "rvinit_main_frame_id", kSmallSize }, |
| 172 { "initrf_frame_id", kSmallSize }, |
| 173 { "initrf_proxy_id", kSmallSize }, |
| 174 { "initrf_view_id", kSmallSize }, |
| 175 { "initrf_main_frame_id", kSmallSize }, |
| 176 { "initrf_view_is_live", kSmallSize }, |
| 172 }; | 177 }; |
| 173 | 178 |
| 174 // This dynamic set of keys is used for sets of key value pairs when gathering | 179 // This dynamic set of keys is used for sets of key value pairs when gathering |
| 175 // a collection of data, like command line switches or extension IDs. | 180 // a collection of data, like command line switches or extension IDs. |
| 176 std::vector<base::debug::CrashKey> keys( | 181 std::vector<base::debug::CrashKey> keys( |
| 177 fixed_keys, fixed_keys + arraysize(fixed_keys)); | 182 fixed_keys, fixed_keys + arraysize(fixed_keys)); |
| 178 | 183 |
| 179 crash_keys::GetCrashKeysForCommandLineSwitches(&keys); | 184 crash_keys::GetCrashKeysForCommandLineSwitches(&keys); |
| 180 | 185 |
| 181 // Register the extension IDs. | 186 // Register the extension IDs. |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 } | 312 } |
| 308 | 313 |
| 309 ScopedPrinterInfo::~ScopedPrinterInfo() { | 314 ScopedPrinterInfo::~ScopedPrinterInfo() { |
| 310 for (size_t i = 0; i < kPrinterInfoCount; ++i) { | 315 for (size_t i = 0; i < kPrinterInfoCount; ++i) { |
| 311 std::string key = base::StringPrintf(kPrinterInfo, i + 1); | 316 std::string key = base::StringPrintf(kPrinterInfo, i + 1); |
| 312 base::debug::ClearCrashKey(key); | 317 base::debug::ClearCrashKey(key); |
| 313 } | 318 } |
| 314 } | 319 } |
| 315 | 320 |
| 316 } // namespace crash_keys | 321 } // namespace crash_keys |
| OLD | NEW |