summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-20 22:10:02 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-20 22:10:02 +0000
commite5e19c3476afa746b3baec8be9ea12532452afbb (patch)
treeba04ab540e44bd0eccb371c0cf053907c4363fd3 /chrome
parentf730a913f16507bedeeca30827a66f07903fb42a (diff)
downloadchromium_src-e5e19c3476afa746b3baec8be9ea12532452afbb.zip
chromium_src-e5e19c3476afa746b3baec8be9ea12532452afbb.tar.gz
chromium_src-e5e19c3476afa746b3baec8be9ea12532452afbb.tar.bz2
posix: port PrependCommand to Windows and use for the plugin launcher.
Review URL: http://codereview.chromium.org/88006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14065 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/plugin_process_host.cc7
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