| 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/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/format_macros.h" | 8 #include "base/format_macros.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/strings/string_split.h" | 10 #include "base/strings/string_split.h" |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 { "rwhvm_window", kMediumSize }, | 188 { "rwhvm_window", kMediumSize }, |
| 189 // media/: | 189 // media/: |
| 190 { "VideoCaptureDeviceQTKit", kSmallSize }, | 190 { "VideoCaptureDeviceQTKit", kSmallSize }, |
| 191 #endif | 191 #endif |
| 192 #if defined(KASKO) | 192 #if defined(KASKO) |
| 193 { kKaskoGuid, kSmallSize }, | 193 { kKaskoGuid, kSmallSize }, |
| 194 { kKaskoEquivalentGuid, kSmallSize }, | 194 { kKaskoEquivalentGuid, kSmallSize }, |
| 195 #endif | 195 #endif |
| 196 { kBug464926CrashKey, kSmallSize }, | 196 { kBug464926CrashKey, kSmallSize }, |
| 197 { kViewCount, kSmallSize }, | 197 { kViewCount, kSmallSize }, |
| 198 // Temporary for http://crbug.com/369661 |
| 199 { "369661-navurl", kLargeSize }, |
| 200 { "369661-oldtype", kSmallSize }, |
| 201 { "369661-newtype", kSmallSize }, |
| 202 { "369661-naventryid", kSmallSize }, |
| 203 { "369661-oldignore", kSmallSize }, |
| 204 { "369661-newignore", kSmallSize }, |
| 205 { "369661-spp", kSmallSize }, |
| 206 { "369661-didcreatenew", kSmallSize }, |
| 207 { "369661-pageid", kSmallSize }, |
| 208 { "369661-maxpageid", kSmallSize }, |
| 209 { "369661-earlyreturn", kSmallSize }, |
| 210 { "369661-doubleignore", kSmallSize }, |
| 211 // End http://crbug.com/369661 |
| 198 }; | 212 }; |
| 199 | 213 |
| 200 // This dynamic set of keys is used for sets of key value pairs when gathering | 214 // This dynamic set of keys is used for sets of key value pairs when gathering |
| 201 // a collection of data, like command line switches or extension IDs. | 215 // a collection of data, like command line switches or extension IDs. |
| 202 std::vector<base::debug::CrashKey> keys( | 216 std::vector<base::debug::CrashKey> keys( |
| 203 fixed_keys, fixed_keys + arraysize(fixed_keys)); | 217 fixed_keys, fixed_keys + arraysize(fixed_keys)); |
| 204 | 218 |
| 205 // Register the switches. | 219 // Register the switches. |
| 206 { | 220 { |
| 207 // The fixed_keys names are string constants. Use static storage for | 221 // The fixed_keys names are string constants. Use static storage for |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 } | 455 } |
| 442 | 456 |
| 443 ScopedPrinterInfo::~ScopedPrinterInfo() { | 457 ScopedPrinterInfo::~ScopedPrinterInfo() { |
| 444 for (size_t i = 0; i < kPrinterInfoCount; ++i) { | 458 for (size_t i = 0; i < kPrinterInfoCount; ++i) { |
| 445 std::string key = base::StringPrintf(kPrinterInfo, i + 1); | 459 std::string key = base::StringPrintf(kPrinterInfo, i + 1); |
| 446 base::debug::ClearCrashKey(key); | 460 base::debug::ClearCrashKey(key); |
| 447 } | 461 } |
| 448 } | 462 } |
| 449 | 463 |
| 450 } // namespace crash_keys | 464 } // namespace crash_keys |
| OLD | NEW |