aboutsummaryrefslogtreecommitdiff
path: root/devel/electron37/files/patch-chrome_common_crash__keys.cc
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron37/files/patch-chrome_common_crash__keys.cc')
-rw-r--r--devel/electron37/files/patch-chrome_common_crash__keys.cc28
1 files changed, 28 insertions, 0 deletions
diff --git a/devel/electron37/files/patch-chrome_common_crash__keys.cc b/devel/electron37/files/patch-chrome_common_crash__keys.cc
new file mode 100644
index 000000000000..415d004b02de
--- /dev/null
+++ b/devel/electron37/files/patch-chrome_common_crash__keys.cc
@@ -0,0 +1,28 @@
+--- chrome/common/crash_keys.cc.orig 2025-04-22 20:15:27 UTC
++++ chrome/common/crash_keys.cc
+@@ -51,7 +51,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); }
+
+@@ -196,6 +198,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()) {
+@@ -210,6 +213,7 @@ void AppendStringAnnotationsCommandLineSwitch(base::Co
+ }
+ command_line->AppendSwitchASCII(kStringAnnotationsSwitch, string_annotations);
+ }
++#endif
+
+ void SetCrashKeysFromCommandLine(const base::CommandLine& command_line) {
+ SetStringAnnotations(command_line);