| Index: base/command_line.cc
|
| diff --git a/base/command_line.cc b/base/command_line.cc
|
| index 9b531fa8501e578618cbeb1817f1c12d96dc1868..d34bcb98fa3345678437f43a80c96e3048096b6f 100644
|
| --- a/base/command_line.cc
|
| +++ b/base/command_line.cc
|
| @@ -273,6 +273,12 @@ void CommandLine::Reset() {
|
| current_process_commandline_ = NULL;
|
| }
|
|
|
| +// static
|
| +CommandLine* CommandLine::ForCurrentProcess() {
|
| + DCHECK(current_process_commandline_);
|
| + return current_process_commandline_;
|
| +}
|
| +
|
| bool CommandLine::HasSwitch(const std::string& switch_string) const {
|
| std::string lowercased_switch(switch_string);
|
| #if defined(OS_WIN)
|
| @@ -530,3 +536,9 @@ void CommandLine::CopySwitchesFrom(const CommandLine& source,
|
| // private
|
| CommandLine::CommandLine() {
|
| }
|
| +
|
| +// static
|
| +CommandLine* CommandLine::ForCurrentProcessMutable() {
|
| + DCHECK(current_process_commandline_);
|
| + return current_process_commandline_;
|
| +}
|
|
|