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 "build/build_config.h" | 5 #include "build/build_config.h" |
6 | 6 |
7 #include "chrome/common/dump_without_crashing.h" | 7 #include "chrome/common/dump_without_crashing.h" |
8 | 8 |
| 9 #include "base/logging.h" |
9 #include "chrome/common/chrome_constants.h" | 10 #include "chrome/common/chrome_constants.h" |
10 | 11 |
11 #if defined(OS_WIN) | 12 #if defined(OS_WIN) |
12 #include <windows.h> | 13 #include <windows.h> |
13 #endif | 14 #endif |
14 | 15 |
15 namespace { | 16 namespace { |
16 | 17 |
17 #if defined(USE_LINUX_BREAKPAD) || defined(OS_MACOSX) | 18 #if defined(USE_LINUX_BREAKPAD) || defined(OS_MACOSX) |
18 // Pointer to the function that's called by DumpWithoutCrashing() to dump the | 19 // Pointer to the function that's called by DumpWithoutCrashing() to dump the |
(...skipping 22 matching lines...) Expand all Loading... |
41 #endif | 42 #endif |
42 } | 43 } |
43 | 44 |
44 #if defined(USE_LINUX_BREAKPAD) || defined(OS_MACOSX) | 45 #if defined(USE_LINUX_BREAKPAD) || defined(OS_MACOSX) |
45 void SetDumpWithoutCrashingFunction(void (*function)()) { | 46 void SetDumpWithoutCrashingFunction(void (*function)()) { |
46 dump_without_crashing_function_ = function; | 47 dump_without_crashing_function_ = function; |
47 } | 48 } |
48 #endif | 49 #endif |
49 | 50 |
50 } // namespace logging | 51 } // namespace logging |
OLD | NEW |