mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: change gin::Wrappable crash key type to ScopedCrashKey (#30610)
* fix: change gin_wrappable to scoped crash key
* fix: build dependency
Dependency was missed in cbeae20438
Co-authored-by: VerteDinde <khammond@slack-corp.com>
Co-authored-by: deepak1556 <hop2deep@gmail.com>
This commit is contained in:
@@ -185,7 +185,7 @@ void SetPlatformCrashKey() {
|
||||
#endif
|
||||
}
|
||||
|
||||
void SetCrashKeyForGinWrappable(gin::WrapperInfo* info) {
|
||||
std::string GetCrashValueForGinWrappable(gin::WrapperInfo* info) {
|
||||
std::string crash_location;
|
||||
|
||||
// Adds a breadcrumb for crashes within gin::WrappableBase::SecondWeakCallback
|
||||
@@ -254,7 +254,7 @@ void SetCrashKeyForGinWrappable(gin::WrapperInfo* info) {
|
||||
"Deleted kWrapperInfo does not match listed component. Please review "
|
||||
"listed crash keys.";
|
||||
|
||||
SetCrashKey("gin-wrappable-fatal.location", crash_location);
|
||||
return crash_location;
|
||||
}
|
||||
|
||||
} // namespace crash_keys
|
||||
|
||||
@@ -24,7 +24,8 @@ void GetCrashKeys(std::map<std::string, std::string>* keys);
|
||||
|
||||
void SetCrashKeysFromCommandLine(const base::CommandLine& command_line);
|
||||
void SetPlatformCrashKey();
|
||||
void SetCrashKeyForGinWrappable(gin::WrapperInfo* info);
|
||||
|
||||
std::string GetCrashValueForGinWrappable(gin::WrapperInfo* info);
|
||||
|
||||
} // namespace crash_keys
|
||||
|
||||
|
||||
Reference in New Issue
Block a user