| Index: base/command_line.cc
|
| diff --git a/base/command_line.cc b/base/command_line.cc
|
| index cf3e36f444691068824108633290a7c9583109b4..d9a2052794198ee7c40f8faddabd07e5676d7b32 100644
|
| --- a/base/command_line.cc
|
| +++ b/base/command_line.cc
|
| @@ -334,5 +334,15 @@ void CommandLine::AppendArguments(const CommandLine& other,
|
| for (i = other.switches_.begin(); i != other.switches_.end(); ++i)
|
| switches_[i->first] = i->second;
|
| }
|
| +
|
| +void CommandLine::PrependWrapper(const std::wstring& wrapper_wide) {
|
| + // The wrapper may have embedded arguments (like "gdb --args"). In this case,
|
| + // we don't pretend to do anything fancy, we just split on spaces.
|
| + const std::string wrapper = WideToASCII(wrapper_wide);
|
| + std::vector<std::string> wrapper_and_args;
|
| + SplitString(wrapper, ' ', &wrapper_and_args);
|
| + argv_.insert(argv_.begin(), wrapper_and_args.begin(), wrapper_and_args.end());
|
| +}
|
| +
|
| #endif
|
|
|
|
|