diff options
Diffstat (limited to 'chrome/browser/plugin_process_host.cc')
-rw-r--r-- | chrome/browser/plugin_process_host.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/chrome/browser/plugin_process_host.cc b/chrome/browser/plugin_process_host.cc index 2b62f6c..6cea0c7 100644 --- a/chrome/browser/plugin_process_host.cc +++ b/chrome/browser/plugin_process_host.cc @@ -439,11 +439,8 @@ bool PluginProcessHost::Init(const WebPluginInfo& info, // If specified, prepend a launcher program to the command line. std::wstring plugin_launcher = browser_command_line.GetSwitchValue(switches::kPluginLauncher); - if (!plugin_launcher.empty()) { - CommandLine new_cmd_line = CommandLine(plugin_launcher); - new_cmd_line.AppendArguments(cmd_line, true); - cmd_line = new_cmd_line; - } + if (!plugin_launcher.empty()) + cmd_line.PrependWrapper(plugin_launcher); if (!locale.empty()) { // Pass on the locale so the null plugin will use the right language in the |