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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 { kKaskoEquivalentGuid, kSmallSize }, | 146 { kKaskoEquivalentGuid, kSmallSize }, |
147 #endif | 147 #endif |
148 { kBug464926CrashKey, kSmallSize }, | 148 { kBug464926CrashKey, kSmallSize }, |
149 { kViewCount, kSmallSize }, | 149 { kViewCount, kSmallSize }, |
150 | 150 |
151 // media/: | 151 // media/: |
152 #if defined(OS_WIN) | 152 #if defined(OS_WIN) |
153 { kHungAudioThreadDetails, kSmallSize }, | 153 { kHungAudioThreadDetails, kSmallSize }, |
154 #endif | 154 #endif |
155 { kZeroEncodeDetails, kSmallSize }, | 155 { kZeroEncodeDetails, kSmallSize }, |
| 156 |
| 157 // Temporary for http://crbug.com/575245. |
| 158 { "swapout_frame_id", kSmallSize }, |
| 159 { "swapout_proxy_id", kSmallSize }, |
| 160 { "swapout_view_id", kSmallSize }, |
| 161 { "commit_frame_id", kSmallSize }, |
| 162 { "commit_proxy_id", kSmallSize }, |
| 163 { "commit_view_id", kSmallSize }, |
| 164 { "commit_main_render_frame_id", kSmallSize }, |
156 }; | 165 }; |
157 | 166 |
158 // This dynamic set of keys is used for sets of key value pairs when gathering | 167 // This dynamic set of keys is used for sets of key value pairs when gathering |
159 // a collection of data, like command line switches or extension IDs. | 168 // a collection of data, like command line switches or extension IDs. |
160 std::vector<base::debug::CrashKey> keys( | 169 std::vector<base::debug::CrashKey> keys( |
161 fixed_keys, fixed_keys + arraysize(fixed_keys)); | 170 fixed_keys, fixed_keys + arraysize(fixed_keys)); |
162 | 171 |
163 crash_keys::GetCrashKeysForCommandLineSwitches(&keys); | 172 crash_keys::GetCrashKeysForCommandLineSwitches(&keys); |
164 | 173 |
165 // Register the extension IDs. | 174 // Register the extension IDs. |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 } | 300 } |
292 | 301 |
293 ScopedPrinterInfo::~ScopedPrinterInfo() { | 302 ScopedPrinterInfo::~ScopedPrinterInfo() { |
294 for (size_t i = 0; i < kPrinterInfoCount; ++i) { | 303 for (size_t i = 0; i < kPrinterInfoCount; ++i) { |
295 std::string key = base::StringPrintf(kPrinterInfo, i + 1); | 304 std::string key = base::StringPrintf(kPrinterInfo, i + 1); |
296 base::debug::ClearCrashKey(key); | 305 base::debug::ClearCrashKey(key); |
297 } | 306 } |
298 } | 307 } |
299 | 308 |
300 } // namespace crash_keys | 309 } // namespace crash_keys |
OLD | NEW |