| Index: chrome/test/base/test_launcher_utils.cc
|
| diff --git a/chrome/test/base/test_launcher_utils.cc b/chrome/test/base/test_launcher_utils.cc
|
| index 61fb15dd81fbd0930a2f36c8273af1a80a06060f..3616ddb06820ea386af696f0fff40e18052639cb 100644
|
| --- a/chrome/test/base/test_launcher_utils.cc
|
| +++ b/chrome/test/base/test_launcher_utils.cc
|
| @@ -72,6 +72,21 @@ void PrepareBrowserCommandLineForTests(base::CommandLine* command_line) {
|
| command_line->AppendSwitch(switches::kDisableComponentUpdate);
|
| }
|
|
|
| +void RemoveCommandLineSwitch(const base::CommandLine& in_command_line,
|
| + const std::string& switch_to_remove,
|
| + base::CommandLine* out_command_line) {
|
| + const base::CommandLine::SwitchMap& switch_map =
|
| + in_command_line.GetSwitches();
|
| + for (base::CommandLine::SwitchMap::const_iterator i = switch_map.begin();
|
| + i != switch_map.end(); ++i) {
|
| + const std::string& switch_name = i->first;
|
| + if (switch_name == switch_to_remove)
|
| + continue;
|
| +
|
| + out_command_line->AppendSwitchNative(switch_name, i->second);
|
| + }
|
| +}
|
| +
|
| bool OverrideUserDataDir(const base::FilePath& user_data_dir) {
|
| bool success = true;
|
|
|
|
|