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

Unified Diff: chromeos/process_proxy/process_proxy.cc

Issue 22750002: Move AlterEnvironment to base/environment.h, implement on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win Created 7 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
Index: chromeos/process_proxy/process_proxy.cc
diff --git a/chromeos/process_proxy/process_proxy.cc b/chromeos/process_proxy/process_proxy.cc
index c536bd8fca23a8f43964ee63b4b1f380ab5299b0..b61ec9fdd085e54a273baccf2f3e9a3086229cf4 100644
--- a/chromeos/process_proxy/process_proxy.cc
+++ b/chromeos/process_proxy/process_proxy.cc
@@ -225,10 +225,7 @@ bool ProcessProxy::LaunchProcess(const std::string& command, int slave_fd,
base::LaunchOptions options;
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;
+ options.environ["TERM"] = "xterm";
// Launch the process.
return base::LaunchProcess(CommandLine(base::FilePath(command)), options,
« no previous file with comments | « chrome/utility/importer/firefox_importer_unittest_utils_mac.cc ('k') | content/browser/browser_child_process_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698