fix: crashReporter incompatible with sandbox on Linux (#23265)
This commit is contained in:
parent
fc434f136b
commit
06bf0d08dc
77 changed files with 2235 additions and 2404 deletions
40
shell/browser/api/electron_api_crash_reporter.h
Normal file
40
shell/browser/api/electron_api_crash_reporter.h
Normal file
|
@ -0,0 +1,40 @@
|
|||
// Copyright (c) 2020 Slack Technologies, Inc.
|
||||
// Use of this source code is governed by the MIT license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef SHELL_BROWSER_API_ELECTRON_API_CRASH_REPORTER_H_
|
||||
#define SHELL_BROWSER_API_ELECTRON_API_CRASH_REPORTER_H_
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include "base/files/file_path.h"
|
||||
|
||||
namespace electron {
|
||||
|
||||
namespace api {
|
||||
|
||||
namespace crash_reporter {
|
||||
|
||||
bool IsCrashReporterEnabled();
|
||||
|
||||
#if defined(OS_LINUX)
|
||||
const std::map<std::string, std::string>& GetGlobalCrashKeys();
|
||||
#endif
|
||||
|
||||
// JS bindings API; exposed publicly because it's also called from node_main.cc
|
||||
void Start(const std::string& submit_url,
|
||||
bool upload_to_server,
|
||||
bool ignore_system_crash_handler,
|
||||
bool rate_limit,
|
||||
bool compress,
|
||||
const std::map<std::string, std::string>& global_extra,
|
||||
const std::map<std::string, std::string>& extra,
|
||||
bool is_node_process);
|
||||
|
||||
} // namespace crash_reporter
|
||||
|
||||
} // namespace api
|
||||
|
||||
} // namespace electron
|
||||
|
||||
#endif // SHELL_BROWSER_API_ELECTRON_API_CRASH_REPORTER_H_
|
Loading…
Add table
Add a link
Reference in a new issue