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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 { kZeroEncodeDetails, kSmallSize }, | 155 { kZeroEncodeDetails, kSmallSize }, |
156 | 156 |
157 // Temporary for http://crbug.com/575245. | 157 // Temporary for http://crbug.com/575245. |
158 { "swapout_frame_id", kSmallSize }, | 158 { "swapout_frame_id", kSmallSize }, |
159 { "swapout_proxy_id", kSmallSize }, | 159 { "swapout_proxy_id", kSmallSize }, |
160 { "swapout_view_id", kSmallSize }, | 160 { "swapout_view_id", kSmallSize }, |
161 { "commit_frame_id", kSmallSize }, | 161 { "commit_frame_id", kSmallSize }, |
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 }, |
| 166 { "newproxy_view_id", kSmallSize }, |
| 167 { "newproxy_opener_id", kSmallSize }, |
| 168 { "newproxy_parent_id", kSmallSize }, |
| 169 { "rvinit_view_id", kSmallSize }, |
| 170 { "rvinit_proxy_id", kSmallSize }, |
| 171 { "rvinit_main_frame_id", kSmallSize }, |
165 }; | 172 }; |
166 | 173 |
167 // This dynamic set of keys is used for sets of key value pairs when gathering | 174 // This dynamic set of keys is used for sets of key value pairs when gathering |
168 // a collection of data, like command line switches or extension IDs. | 175 // a collection of data, like command line switches or extension IDs. |
169 std::vector<base::debug::CrashKey> keys( | 176 std::vector<base::debug::CrashKey> keys( |
170 fixed_keys, fixed_keys + arraysize(fixed_keys)); | 177 fixed_keys, fixed_keys + arraysize(fixed_keys)); |
171 | 178 |
172 crash_keys::GetCrashKeysForCommandLineSwitches(&keys); | 179 crash_keys::GetCrashKeysForCommandLineSwitches(&keys); |
173 | 180 |
174 // Register the extension IDs. | 181 // Register the extension IDs. |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 } | 307 } |
301 | 308 |
302 ScopedPrinterInfo::~ScopedPrinterInfo() { | 309 ScopedPrinterInfo::~ScopedPrinterInfo() { |
303 for (size_t i = 0; i < kPrinterInfoCount; ++i) { | 310 for (size_t i = 0; i < kPrinterInfoCount; ++i) { |
304 std::string key = base::StringPrintf(kPrinterInfo, i + 1); | 311 std::string key = base::StringPrintf(kPrinterInfo, i + 1); |
305 base::debug::ClearCrashKey(key); | 312 base::debug::ClearCrashKey(key); |
306 } | 313 } |
307 } | 314 } |
308 | 315 |
309 } // namespace crash_keys | 316 } // namespace crash_keys |
OLD | NEW |