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

Unified Diff: chrome/browser/chromeos/process_proxy/process_proxy.cc

Issue 12223118: When launching crosh process set TERM var to be 'xterm' (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/process_proxy/process_proxy.cc
diff --git a/chrome/browser/chromeos/process_proxy/process_proxy.cc b/chrome/browser/chromeos/process_proxy/process_proxy.cc
index ead1377fe9f8a5e190c2dc1c60c8d7142add21bf..98ac0c008f8c198ca27687e425def525264318ac 100644
--- a/chrome/browser/chromeos/process_proxy/process_proxy.cc
+++ b/chrome/browser/chromeos/process_proxy/process_proxy.cc
@@ -216,6 +216,10 @@ bool ProcessProxy::LaunchProcess(const std::string& command, int slave_fd,
options.fds_to_remap = &fds_mapping;
options.ctrl_terminal_fd = slave_fd;
+ base::EnvironmentVector environ;
+ environ.push_back(std::make_pair("TERM", "xterm"));
+ options.environ = &environ;
+
// Launch the process.
return base::LaunchProcess(CommandLine(base::FilePath(command)), options,
pid);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698