Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(710)

Side by Side Diff: base/debug/crash_logging.cc

Issue 2377963002: restore LOG_FATAL crash key on windows
Patch Set: move CrashMessageHandler out of base Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | base/logging.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/auto_reset.h"
10 #include "base/debug/stack_trace.h" 11 #include "base/debug/stack_trace.h"
11 #include "base/format_macros.h" 12 #include "base/format_macros.h"
12 #include "base/logging.h" 13 #include "base/logging.h"
13 #include "base/strings/string_util.h" 14 #include "base/strings/string_util.h"
14 #include "base/strings/stringprintf.h" 15 #include "base/strings/stringprintf.h"
15 16
16 // Undef the macro so the preprocessor doesn't garble the constructor. 17 // Undef the macro so the preprocessor doesn't garble the constructor.
17 #undef ScopedCrashKey 18 #undef ScopedCrashKey
18 19
19 namespace base { 20 namespace base {
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 void ResetCrashLoggingForTesting() { 198 void ResetCrashLoggingForTesting() {
198 delete g_crash_keys_; 199 delete g_crash_keys_;
199 g_crash_keys_ = NULL; 200 g_crash_keys_ = NULL;
200 g_chunk_max_length_ = 0; 201 g_chunk_max_length_ = 0;
201 g_set_key_func_ = NULL; 202 g_set_key_func_ = NULL;
202 g_clear_key_func_ = NULL; 203 g_clear_key_func_ = NULL;
203 } 204 }
204 205
205 } // namespace debug 206 } // namespace debug
206 } // namespace base 207 } // namespace base
OLDNEW
« no previous file with comments | « no previous file | base/logging.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698