Commit 3dff367a authored by Scott Violet's avatar Scott Violet Committed by Commit Bot

chrome: removes unnecessary code in AdjustChildProcessCommandLine()

At the time this function is called kUserDataDir shouldn't be set.

BUG=none
TEST=none

Change-Id: I5226da00d5943b57e611b25bc6c417ad5fbd3c0e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2008052Reviewed-by: default avatarJohn Abd-El-Malek <jam@chromium.org>
Commit-Queue: Scott Violet <sky@chromium.org>
Cr-Commit-Position: refs/heads/master@{#733062}
parent ebe90663
...@@ -123,20 +123,7 @@ int ChromeTestLauncherDelegate::RunTestSuite(int argc, char** argv) { ...@@ -123,20 +123,7 @@ int ChromeTestLauncherDelegate::RunTestSuite(int argc, char** argv) {
bool ChromeTestLauncherDelegate::AdjustChildProcessCommandLine( bool ChromeTestLauncherDelegate::AdjustChildProcessCommandLine(
base::CommandLine* command_line, base::CommandLine* command_line,
const base::FilePath& temp_data_dir) { const base::FilePath& temp_data_dir) {
base::CommandLine new_command_line(command_line->GetProgram()); command_line->AppendSwitchPath(switches::kUserDataDir, temp_data_dir);
base::CommandLine::SwitchMap switches = command_line->GetSwitches();
// Strip out user-data-dir if present. We will add it back in again later.
switches.erase(switches::kUserDataDir);
for (base::CommandLine::SwitchMap::const_iterator iter = switches.begin();
iter != switches.end(); ++iter) {
new_command_line.AppendSwitchNative((*iter).first, (*iter).second);
}
new_command_line.AppendSwitchPath(switches::kUserDataDir, temp_data_dir);
*command_line = new_command_line;
return true; return true;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment