mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Improve crashpad integration (issue #1995)
- Crash reporting is enabled and configured using a "crash_reporter.cfg" file. See comments in include/cef_crash_util.h and tools/crash_server.py for usage.
This commit is contained in:
@@ -12,6 +12,8 @@
|
||||
|
||||
#include "include/cef_app.h"
|
||||
#include "include/capi/cef_app_capi.h"
|
||||
#include "include/cef_crash_util.h"
|
||||
#include "include/capi/cef_crash_util_capi.h"
|
||||
#include "include/cef_file_util.h"
|
||||
#include "include/capi/cef_file_util_capi.h"
|
||||
#include "include/cef_geolocation.h"
|
||||
@@ -383,6 +385,35 @@ CEF_GLOBAL void CefEnableHighDPISupport() {
|
||||
cef_enable_highdpi_support();
|
||||
}
|
||||
|
||||
CEF_GLOBAL bool CefCrashReportingEnabled() {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
int _retval = cef_crash_reporting_enabled();
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
CEF_GLOBAL void CefSetCrashKeyValue(const CefString& key,
|
||||
const CefString& value) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: key; type: string_byref_const
|
||||
DCHECK(!key.empty());
|
||||
if (key.empty())
|
||||
return;
|
||||
// Verify param: value; type: string_byref_const
|
||||
DCHECK(!value.empty());
|
||||
if (value.empty())
|
||||
return;
|
||||
|
||||
// Execute
|
||||
cef_set_crash_key_value(
|
||||
key.GetStruct(),
|
||||
value.GetStruct());
|
||||
}
|
||||
|
||||
CEF_GLOBAL bool CefCreateDirectory(const CefString& full_path) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
|
Reference in New Issue
Block a user