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
30
shell/common/crash_keys.h
Normal file
30
shell/common/crash_keys.h
Normal file
|
@ -0,0 +1,30 @@
|
|||
// 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_COMMON_CRASH_KEYS_H_
|
||||
#define SHELL_COMMON_CRASH_KEYS_H_
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
namespace base {
|
||||
class CommandLine;
|
||||
}
|
||||
|
||||
namespace electron {
|
||||
|
||||
namespace crash_keys {
|
||||
|
||||
void SetCrashKey(const std::string& key, const std::string& value);
|
||||
void ClearCrashKey(const std::string& key);
|
||||
void GetCrashKeys(std::map<std::string, std::string>* keys);
|
||||
|
||||
void SetCrashKeysFromCommandLine(const base::CommandLine& command_line);
|
||||
void SetPlatformCrashKey();
|
||||
|
||||
} // namespace crash_keys
|
||||
|
||||
} // namespace electron
|
||||
|
||||
#endif // SHELL_COMMON_CRASH_KEYS_H_
|
Loading…
Add table
Add a link
Reference in a new issue