ports/devel/electron28/files/patch-chrome_common_crash__keys.cc
Hiroki Tagato f88751e60a devel/electron28: add port: Build cross-platform desktop apps with JavaScript, HTML, and CSS
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://electronjs.org/
2024-01-29 16:47:07 +09:00

23 lines
969 B
C++

--- chrome/common/crash_keys.cc.orig 2023-11-29 21:39:54 UTC
+++ chrome/common/crash_keys.cc
@@ -32,20 +32,10 @@ namespace {
namespace {
// A convenient wrapper around a crash key and its name.
-//
-// The CrashKey contract requires that CrashKeyStrings are never
-// moved, copied, or deleted (see
-// third_party/crashpad/crashpad/client/annotation.h); since this class holds
-// a CrashKeyString, it likewise cannot be moved, copied, or deleted.
class CrashKeyWithName {
public:
explicit CrashKeyWithName(std::string name)
: name_(std::move(name)), crash_key_(name_.c_str()) {}
- CrashKeyWithName(const CrashKeyWithName&) = delete;
- CrashKeyWithName& operator=(const CrashKeyWithName&) = delete;
- CrashKeyWithName(CrashKeyWithName&&) = delete;
- CrashKeyWithName& operator=(CrashKeyWithName&&) = delete;
- ~CrashKeyWithName() = delete;
void Clear() { crash_key_.Clear(); }
void Set(base::StringPiece value) { crash_key_.Set(value); }