| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/debug/crash_logging.h" | 5 #include "base/debug/crash_logging.h" |
| 6 | 6 |
| 7 #include <cmath> | 7 #include <cmath> |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/debug/stack_trace.h" | 10 #include "base/debug/stack_trace.h" |
| 11 #include "base/format_macros.h" | 11 #include "base/format_macros.h" |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/string_util.h" | 13 #include "base/strings/string_util.h" |
| 14 #include "base/stringprintf.h" | 14 #include "base/strings/stringprintf.h" |
| 15 | 15 |
| 16 namespace base { | 16 namespace base { |
| 17 namespace debug { | 17 namespace debug { |
| 18 | 18 |
| 19 namespace { | 19 namespace { |
| 20 | 20 |
| 21 // Global map of crash key names to registration entries. | 21 // Global map of crash key names to registration entries. |
| 22 typedef std::map<base::StringPiece, CrashKey> CrashKeyMap; | 22 typedef std::map<base::StringPiece, CrashKey> CrashKeyMap; |
| 23 CrashKeyMap* g_crash_keys_ = NULL; | 23 CrashKeyMap* g_crash_keys_ = NULL; |
| 24 | 24 |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 void ResetCrashLoggingForTesting() { | 192 void ResetCrashLoggingForTesting() { |
| 193 delete g_crash_keys_; | 193 delete g_crash_keys_; |
| 194 g_crash_keys_ = NULL; | 194 g_crash_keys_ = NULL; |
| 195 g_chunk_max_length_ = 0; | 195 g_chunk_max_length_ = 0; |
| 196 g_set_key_func_ = NULL; | 196 g_set_key_func_ = NULL; |
| 197 g_clear_key_func_ = NULL; | 197 g_clear_key_func_ = NULL; |
| 198 } | 198 } |
| 199 | 199 |
| 200 } // namespace debug | 200 } // namespace debug |
| 201 } // namespace base | 201 } // namespace base |
| OLD | NEW |