mirror of
https://git.freebsd.org/ports.git
synced 2025-06-12 08:10:31 -04:00
Build cross platform desktop apps with JavaScript, HTML, and CSS. It's easier than you think. If you can build a website, you can build a desktop app. Electron is a framework for creating native applications with web technologies like JavaScript, HTML, and CSS. It takes care of the hard parts so you can focus on the core of your application. WWW: https://www.electronjs.org/
28 lines
1.1 KiB
C++
28 lines
1.1 KiB
C++
--- chrome/common/crash_keys.cc.orig 2024-10-16 21:31:04 UTC
|
|
+++ chrome/common/crash_keys.cc
|
|
@@ -56,7 +56,9 @@ class CrashKeyWithName {
|
|
~CrashKeyWithName() = delete;
|
|
|
|
std::string_view Name() const { return name_; }
|
|
+#if BUILDFLAG(USE_CRASHPAD_ANNOTATION)
|
|
std::string_view Value() const { return crash_key_.value(); }
|
|
+#endif
|
|
void Clear() { crash_key_.Clear(); }
|
|
void Set(std::string_view value) { crash_key_.Set(value); }
|
|
|
|
@@ -201,6 +203,7 @@ void AllocateCrashKeyInBrowserAndChildren(std::string_
|
|
GetCommandLineStringAnnotations().emplace_back(std::string(key)).Set(value);
|
|
}
|
|
|
|
+#if BUILDFLAG(USE_CRASHPAD_ANNOTATION)
|
|
void AppendStringAnnotationsCommandLineSwitch(base::CommandLine* command_line) {
|
|
std::string string_annotations;
|
|
for (const auto& crash_key : GetCommandLineStringAnnotations()) {
|
|
@@ -212,6 +215,7 @@ void AppendStringAnnotationsCommandLineSwitch(base::Co
|
|
}
|
|
command_line->AppendSwitchASCII(kStringAnnotationsSwitch, string_annotations);
|
|
}
|
|
+#endif
|
|
|
|
void SetCrashKeysFromCommandLine(const base::CommandLine& command_line) {
|
|
SetStringAnnotations(command_line);
|