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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 // media/: | 139 // media/: |
140 { "VideoCaptureDeviceQTKit", kSmallSize }, | 140 { "VideoCaptureDeviceQTKit", kSmallSize }, |
141 #endif | 141 #endif |
142 #if defined(KASKO) | 142 #if defined(KASKO) |
143 { kKaskoGuid, kSmallSize }, | 143 { kKaskoGuid, kSmallSize }, |
144 { kKaskoEquivalentGuid, kSmallSize }, | 144 { kKaskoEquivalentGuid, kSmallSize }, |
145 #endif | 145 #endif |
146 { kBug464926CrashKey, kSmallSize }, | 146 { kBug464926CrashKey, kSmallSize }, |
147 { kViewCount, kSmallSize }, | 147 { kViewCount, kSmallSize }, |
148 { kZeroEncodeDetails, kSmallSize }, | 148 { kZeroEncodeDetails, kSmallSize }, |
| 149 |
| 150 // Temporary for http://crbug.com/369661 |
| 151 { "pageid", kSmallSize }, |
| 152 { "navuniqueid", kSmallSize }, |
| 153 { "oldindex", kSmallSize }, |
| 154 { "newindex", kSmallSize }, |
| 155 { "lastcommittedindex", kSmallSize }, |
| 156 { "oldurl", kLargeSize }, |
| 157 { "newurl", kLargeSize }, |
| 158 { "updatedvalue", kLargeSize }, |
| 159 { "oldvalue", kLargeSize }, |
| 160 { "newvalue", kLargeSize }, |
| 161 // End http://crbug.com/369661 |
149 }; | 162 }; |
150 | 163 |
151 // This dynamic set of keys is used for sets of key value pairs when gathering | 164 // This dynamic set of keys is used for sets of key value pairs when gathering |
152 // a collection of data, like command line switches or extension IDs. | 165 // a collection of data, like command line switches or extension IDs. |
153 std::vector<base::debug::CrashKey> keys( | 166 std::vector<base::debug::CrashKey> keys( |
154 fixed_keys, fixed_keys + arraysize(fixed_keys)); | 167 fixed_keys, fixed_keys + arraysize(fixed_keys)); |
155 | 168 |
156 // Register the switches. | 169 // Register the switches. |
157 { | 170 { |
158 // The fixed_keys names are string constants. Use static storage for | 171 // The fixed_keys names are string constants. Use static storage for |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 } | 348 } |
336 | 349 |
337 ScopedPrinterInfo::~ScopedPrinterInfo() { | 350 ScopedPrinterInfo::~ScopedPrinterInfo() { |
338 for (size_t i = 0; i < kPrinterInfoCount; ++i) { | 351 for (size_t i = 0; i < kPrinterInfoCount; ++i) { |
339 std::string key = base::StringPrintf(kPrinterInfo, i + 1); | 352 std::string key = base::StringPrintf(kPrinterInfo, i + 1); |
340 base::debug::ClearCrashKey(key); | 353 base::debug::ClearCrashKey(key); |
341 } | 354 } |
342 } | 355 } |
343 | 356 |
344 } // namespace crash_keys | 357 } // namespace crash_keys |
OLD | NEW |