| 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 // Public interface for enabling Breakpad on Linux systems. This can be | 5 // Public interface for enabling Breakpad on Linux systems. |
| 6 // included in files that are not built with linux_breakpad=1. | |
| 7 | 6 |
| 8 #ifndef CHROME_APP_BREAKPAD_LINUX_H_ | 7 #ifndef CHROME_APP_BREAKPAD_LINUX_H_ |
| 9 #define CHROME_APP_BREAKPAD_LINUX_H_ | 8 #define CHROME_APP_BREAKPAD_LINUX_H_ |
| 10 | 9 |
| 11 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| 12 | 11 |
| 13 // Turns on the crash reporter in any process. | 12 // Turns on the crash reporter in any process. |
| 14 extern void InitCrashReporter(); | 13 extern void InitCrashReporter(); |
| 15 | 14 |
| 16 // Enables the crash reporter in child processes. | 15 // Enables the crash reporter in child processes. |
| 17 #if defined(OS_ANDROID) | 16 #if defined(OS_ANDROID) |
| 18 extern void InitNonBrowserCrashReporterForAndroid(); | 17 extern void InitNonBrowserCrashReporterForAndroid(); |
| 19 #endif | 18 #endif |
| 20 | 19 |
| 21 // Checks if crash reporting is enabled. Note that this is not the same as | 20 // Checks if crash reporting is enabled. Note that this is not the same as |
| 22 // being opted into metrics reporting (and crash reporting), which controls | 21 // being opted into metrics reporting (and crash reporting), which controls |
| 23 // whether InitCrashReporter() is called. | 22 // whether InitCrashReporter() is called. |
| 24 bool IsCrashReporterEnabled(); | 23 bool IsCrashReporterEnabled(); |
| 25 | 24 |
| 26 #endif // CHROME_APP_BREAKPAD_LINUX_H_ | 25 #endif // CHROME_APP_BREAKPAD_LINUX_H_ |
| OLD | NEW |