refactor: reduce scope of relauncher's internal constants (#44860)
* refactor: make kRelauncherArgSeparator private to relauncher.cc * refactor: make kRelauncherTypeArg private to relauncher.cc * refactor: remove unused type relauncher::CharType * refactor: move private constants into standalone private namespace * refactor: move kWaitEventName into the only function that uses it
This commit is contained in:
parent
8f00cc9c0e
commit
033a0abb59
3 changed files with 24 additions and 24 deletions
|
@ -19,8 +19,6 @@ namespace relauncher::internal {
|
|||
|
||||
namespace {
|
||||
|
||||
const CharType* kWaitEventName = L"ElectronRelauncherWaitEvent";
|
||||
|
||||
struct PROCESS_BASIC_INFORMATION {
|
||||
union {
|
||||
NTSTATUS ExitStatus;
|
||||
|
@ -98,8 +96,8 @@ StringType AddQuoteForArg(const StringType& arg) {
|
|||
} // namespace
|
||||
|
||||
StringType GetWaitEventName(base::ProcessId pid) {
|
||||
return base::StrCat(
|
||||
{kWaitEventName, L"-", base::NumberToWString(static_cast<int>(pid))});
|
||||
return base::StrCat({L"ElectronRelauncherWaitEvent-",
|
||||
base::NumberToWString(static_cast<int>(pid))});
|
||||
}
|
||||
|
||||
StringType ArgvToCommandLineString(const StringVector& argv) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue