refactor: reduce scope of relauncher's internal constants (#44892)
* refactor: make kRelauncherArgSeparator private to relauncher.cc Co-authored-by: Charles Kerr <charles@charleskerr.com> * refactor: make kRelauncherTypeArg private to relauncher.cc Co-authored-by: Charles Kerr <charles@charleskerr.com> * refactor: remove unused type relauncher::CharType Co-authored-by: Charles Kerr <charles@charleskerr.com> * refactor: move private constants into standalone private namespace Co-authored-by: Charles Kerr <charles@charleskerr.com> * refactor: move kWaitEventName into the only function that uses it Co-authored-by: Charles Kerr <charles@charleskerr.com> --------- Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Charles Kerr <charles@charleskerr.com>
This commit is contained in:
parent
a92b3944a1
commit
dc0c6c6f3f
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