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
|
@ -41,7 +41,6 @@ struct MainFunctionParams;
|
|||
|
||||
namespace relauncher {
|
||||
|
||||
using CharType = base::CommandLine::CharType;
|
||||
using StringType = base::CommandLine::StringType;
|
||||
using StringVector = base::CommandLine::StringVector;
|
||||
|
||||
|
@ -83,18 +82,6 @@ namespace internal {
|
|||
extern const int kRelauncherSyncFD;
|
||||
#endif
|
||||
|
||||
// The "type" argument identifying a relauncher process ("--type=relauncher").
|
||||
extern const CharType* kRelauncherTypeArg;
|
||||
|
||||
// The argument separating arguments intended for the relauncher process from
|
||||
// those intended for the relaunched process. "---" is chosen instead of "--"
|
||||
// because CommandLine interprets "--" as meaning "end of switches", but
|
||||
// for many purposes, the relauncher process' CommandLine ought to interpret
|
||||
// arguments intended for the relaunched process, to get the correct settings
|
||||
// for such things as logging and the user-data-dir in case it affects crash
|
||||
// reporting.
|
||||
extern const CharType* kRelauncherArgSeparator;
|
||||
|
||||
#if BUILDFLAG(IS_WIN)
|
||||
StringType GetWaitEventName(base::ProcessId pid);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue