| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/crash/core/common/crash_keys.h" | 5 #include "components/crash/core/common/crash_keys.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/debug/crash_logging.h" | 8 #include "base/debug/crash_logging.h" |
| 9 #include "base/format_macros.h" | 9 #include "base/format_macros.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 const char kClientId[] = "guid"; | 30 const char kClientId[] = "guid"; |
| 31 #else | 31 #else |
| 32 const char kClientId[] = "guid"; | 32 const char kClientId[] = "guid"; |
| 33 #endif | 33 #endif |
| 34 | 34 |
| 35 const char kChannel[] = "channel"; | 35 const char kChannel[] = "channel"; |
| 36 | 36 |
| 37 const char kNumVariations[] = "num-experiments"; | 37 const char kNumVariations[] = "num-experiments"; |
| 38 const char kVariations[] = "variations"; | 38 const char kVariations[] = "variations"; |
| 39 | 39 |
| 40 const char kLogFatal[] = "LOG_FATAL"; |
| 41 |
| 40 const char kSwitchFormat[] = "switch-%" PRIuS; | 42 const char kSwitchFormat[] = "switch-%" PRIuS; |
| 41 const char kNumSwitches[] = "num-switches"; | 43 const char kNumSwitches[] = "num-switches"; |
| 42 | 44 |
| 43 const char kBug464926CrashKey[] = "bug-464926-info"; | 45 const char kBug464926CrashKey[] = "bug-464926-info"; |
| 44 | 46 |
| 45 #if defined(OS_MACOSX) | 47 #if defined(OS_MACOSX) |
| 46 namespace mac { | 48 namespace mac { |
| 47 | 49 |
| 48 const char kZombie[] = "zombie"; | 50 const char kZombie[] = "zombie"; |
| 49 const char kZombieTrace[] = "zombie_dealloc_bt"; | 51 const char kZombieTrace[] = "zombie_dealloc_bt"; |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 std::string key = base::StringPrintf(kSwitchFormat, key_i++); | 163 std::string key = base::StringPrintf(kSwitchFormat, key_i++); |
| 162 base::debug::SetCrashKeyValue(key, switch_str); | 164 base::debug::SetCrashKeyValue(key, switch_str); |
| 163 } | 165 } |
| 164 | 166 |
| 165 // Clear any remaining switches. | 167 // Clear any remaining switches. |
| 166 for (; key_i <= kSwitchesMaxCount; ++key_i) | 168 for (; key_i <= kSwitchesMaxCount; ++key_i) |
| 167 base::debug::ClearCrashKey(base::StringPrintf(kSwitchFormat, key_i)); | 169 base::debug::ClearCrashKey(base::StringPrintf(kSwitchFormat, key_i)); |
| 168 } | 170 } |
| 169 | 171 |
| 170 } // namespace crash_keys | 172 } // namespace crash_keys |
| OLD | NEW |