| 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 { mac::kLastNSExceptionTrace, kMediumSize }, | 160 { mac::kLastNSExceptionTrace, kMediumSize }, |
| 161 { mac::kNSException, kMediumSize }, | 161 { mac::kNSException, kMediumSize }, |
| 162 { mac::kNSExceptionTrace, kMediumSize }, | 162 { mac::kNSExceptionTrace, kMediumSize }, |
| 163 { mac::kSendAction, kMediumSize }, | 163 { mac::kSendAction, kMediumSize }, |
| 164 { mac::kZombie, kMediumSize }, | 164 { mac::kZombie, kMediumSize }, |
| 165 { mac::kZombieTrace, kMediumSize }, | 165 { mac::kZombieTrace, kMediumSize }, |
| 166 // content/: | 166 // content/: |
| 167 { "channel_error_bt", kMediumSize }, | 167 { "channel_error_bt", kMediumSize }, |
| 168 { "remove_route_bt", kMediumSize }, | 168 { "remove_route_bt", kMediumSize }, |
| 169 { "rwhvm_window", kMediumSize }, | 169 { "rwhvm_window", kMediumSize }, |
| 170 // The following keys are for diagnosing crashes in http://crbug.com/369661. | |
| 171 // They will not be permanent. | |
| 172 { "renderer_page_id", kSmallSize }, | |
| 173 { "browser_page_id", kSmallSize }, | |
| 174 { "last_committed_page_id", kSmallSize }, | |
| 175 // End http://crbug.com/369661 | |
| 176 // media/: | 170 // media/: |
| 177 { "VideoCaptureDeviceQTKit", kSmallSize }, | 171 { "VideoCaptureDeviceQTKit", kSmallSize }, |
| 178 #endif | 172 #endif |
| 179 }; | 173 }; |
| 180 | 174 |
| 181 // This dynamic set of keys is used for sets of key value pairs when gathering | 175 // This dynamic set of keys is used for sets of key value pairs when gathering |
| 182 // a collection of data, like command line switches or extension IDs. | 176 // a collection of data, like command line switches or extension IDs. |
| 183 std::vector<base::debug::CrashKey> keys( | 177 std::vector<base::debug::CrashKey> keys( |
| 184 fixed_keys, fixed_keys + arraysize(fixed_keys)); | 178 fixed_keys, fixed_keys + arraysize(fixed_keys)); |
| 185 | 179 |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 } | 396 } |
| 403 | 397 |
| 404 ScopedPrinterInfo::~ScopedPrinterInfo() { | 398 ScopedPrinterInfo::~ScopedPrinterInfo() { |
| 405 for (size_t i = 0; i < kPrinterInfoCount; ++i) { | 399 for (size_t i = 0; i < kPrinterInfoCount; ++i) { |
| 406 std::string key = base::StringPrintf(kPrinterInfo, i + 1); | 400 std::string key = base::StringPrintf(kPrinterInfo, i + 1); |
| 407 base::debug::ClearCrashKey(key); | 401 base::debug::ClearCrashKey(key); |
| 408 } | 402 } |
| 409 } | 403 } |
| 410 | 404 |
| 411 } // namespace crash_keys | 405 } // namespace crash_keys |
| OLD | NEW |