| 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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 { "rwhvm_window", kMediumSize }, | 192 { "rwhvm_window", kMediumSize }, |
| 193 // media/: | 193 // media/: |
| 194 { "VideoCaptureDeviceQTKit", kSmallSize }, | 194 { "VideoCaptureDeviceQTKit", kSmallSize }, |
| 195 #endif | 195 #endif |
| 196 #if defined(KASKO) | 196 #if defined(KASKO) |
| 197 { kKaskoGuid, kSmallSize }, | 197 { kKaskoGuid, kSmallSize }, |
| 198 { kKaskoEquivalentGuid, kSmallSize }, | 198 { kKaskoEquivalentGuid, kSmallSize }, |
| 199 #endif | 199 #endif |
| 200 { kBug464926CrashKey, kSmallSize }, | 200 { kBug464926CrashKey, kSmallSize }, |
| 201 { kViewCount, kSmallSize }, | 201 { kViewCount, kSmallSize }, |
| 202 |
| 203 // Temporary for http://crbug.com/369661 |
| 204 { "oldindex", kSmallSize }, |
| 205 { "newindex", kSmallSize }, |
| 206 { "lastcommittedindex", kSmallSize }, |
| 207 { "oldurl", kLargeSize }, |
| 208 { "newurl", kLargeSize }, |
| 209 { "updatedvalue", kLargeSize }, |
| 210 { "oldvalue", kLargeSize }, |
| 211 { "newvalue", kLargeSize }, |
| 212 // End http://crbug.com/369661 |
| 202 }; | 213 }; |
| 203 | 214 |
| 204 // This dynamic set of keys is used for sets of key value pairs when gathering | 215 // This dynamic set of keys is used for sets of key value pairs when gathering |
| 205 // a collection of data, like command line switches or extension IDs. | 216 // a collection of data, like command line switches or extension IDs. |
| 206 std::vector<base::debug::CrashKey> keys( | 217 std::vector<base::debug::CrashKey> keys( |
| 207 fixed_keys, fixed_keys + arraysize(fixed_keys)); | 218 fixed_keys, fixed_keys + arraysize(fixed_keys)); |
| 208 | 219 |
| 209 // Register the switches. | 220 // Register the switches. |
| 210 { | 221 { |
| 211 // The fixed_keys names are string constants. Use static storage for | 222 // The fixed_keys names are string constants. Use static storage for |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 445 } | 456 } |
| 446 | 457 |
| 447 ScopedPrinterInfo::~ScopedPrinterInfo() { | 458 ScopedPrinterInfo::~ScopedPrinterInfo() { |
| 448 for (size_t i = 0; i < kPrinterInfoCount; ++i) { | 459 for (size_t i = 0; i < kPrinterInfoCount; ++i) { |
| 449 std::string key = base::StringPrintf(kPrinterInfo, i + 1); | 460 std::string key = base::StringPrintf(kPrinterInfo, i + 1); |
| 450 base::debug::ClearCrashKey(key); | 461 base::debug::ClearCrashKey(key); |
| 451 } | 462 } |
| 452 } | 463 } |
| 453 | 464 |
| 454 } // namespace crash_keys | 465 } // namespace crash_keys |
| OLD | NEW |