diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-04 18:24:38 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-04 18:24:38 +0000 |
commit | 13081fccbf907aef8476c94d904fc94d6c59a206 (patch) | |
tree | 9470fa1206aba0c8b41ad569a019c7ad484ab7ab /chrome/browser/worker_host | |
parent | 815d63d9f1c68ffa056ad2c2c8fee34f0d0b70b8 (diff) | |
download | chromium_src-13081fccbf907aef8476c94d904fc94d6c59a206.zip chromium_src-13081fccbf907aef8476c94d904fc94d6c59a206.tar.gz chromium_src-13081fccbf907aef8476c94d904fc94d6c59a206.tar.bz2 |
PrependWrapper is platform-specific, so it should take a platform string.
Though the comments said it was POSIX only, I see it used on Windows as
well so I'm updating the comment.
Review URL: http://codereview.chromium.org/3030043
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54933 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/worker_host')
-rw-r--r-- | chrome/browser/worker_host/worker_process_host.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/chrome/browser/worker_host/worker_process_host.cc b/chrome/browser/worker_host/worker_process_host.cc index 8b3ac2d..2c4cf7f 100644 --- a/chrome/browser/worker_host/worker_process_host.cc +++ b/chrome/browser/worker_host/worker_process_host.cc @@ -143,16 +143,15 @@ bool WorkerProcessHost::Init() { if (value.empty() || value == switches::kWorkerProcess) { // launches a new xterm, and runs the worker process in gdb, reading // optional commands from gdb_chrome file in the working directory. - cmd_line->PrependWrapper(L"xterm -e gdb -x gdb_chrome --args"); + cmd_line->PrependWrapper("xterm -e gdb -x gdb_chrome --args"); } } if (CommandLine::ForCurrentProcess()->HasSwitch( switches::kRendererCmdPrefix)) { - const std::wstring prefix = - CommandLine::ForCurrentProcess()->GetSwitchValue( - switches::kRendererCmdPrefix); - cmd_line->PrependWrapper(prefix); + cmd_line->PrependWrapper( + CommandLine::ForCurrentProcess()->GetSwitchValueNative( + switches::kRendererCmdPrefix)); } #endif |