Index: chrome/browser/zygote_host_linux.cc |
diff --git a/chrome/browser/zygote_host_linux.cc b/chrome/browser/zygote_host_linux.cc |
index 49c93c2726992f779d22fa239e333f8b028cf749..983e2cea9f60731573d1ff13aff0f63399951ed9 100644 |
--- a/chrome/browser/zygote_host_linux.cc |
+++ b/chrome/browser/zygote_host_linux.cc |
@@ -96,16 +96,9 @@ void ZygoteHost::Init(const std::string& sandbox_cmd) { |
#else |
switches::kEnableSeccompSandbox, |
#endif |
- NULL |
}; |
- for (const char** sw = kForwardSwitches; *sw; sw++) { |
- if (browser_command_line.HasSwitch(*sw)) { |
- // Always append with value for those switches which need it; it does no |
- // harm for those which don't. |
- cmd_line.AppendSwitchWithValue(*sw, |
- browser_command_line.GetSwitchValueASCII(*sw)); |
- } |
- } |
+ cmd_line.CopySwitchesFrom(browser_command_line, kForwardSwitches, |
+ arraysize(kForwardSwitches)); |
sandbox_binary_ = sandbox_cmd.c_str(); |
struct stat st; |