Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3673)

Unified Diff: chrome/browser/worker_host/worker_process_host.cc

Issue 3030043: PrependWrapper is platform-specific, so it should take a platform string. (Closed)
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/utility_process_host.cc ('k') | chrome/browser/zygote_host_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/worker_host/worker_process_host.cc
diff --git a/chrome/browser/worker_host/worker_process_host.cc b/chrome/browser/worker_host/worker_process_host.cc
index 8b3ac2ddc532cdd5c50f71e29efae354c6203211..2c4cf7fb2f3f7c4d7e4e130e5a99ceb503bb8c3d 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
« no previous file with comments | « chrome/browser/utility_process_host.cc ('k') | chrome/browser/zygote_host_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698