From b345c488dfae844a0794ead7d883ca3034f95531 Mon Sep 17 00:00:00 2001 From: "brettw@chromium.org" Date: Fri, 30 Aug 2013 18:00:39 +0000 Subject: Move AlterEnvironment to base/environment.h, implement on Windows. This re-implements the Posix version to be more like the Windows version and to share some parsing code. The new version will be somewhat slower due to some extra mallocs, but is shorter and more clear. I didn't want to implement a super optimized version on Windows, and the alternative would be to keep the new Windows version and the old Posix version in parallel which seemed less desirable. This changes the input from a vector to a map and just adds the map on the LaunchOptions rather than requiring the caller to set a pointer. This cleans up the callsites somewhat. BUG= R=viettrungluu@chromium.org Review URL: https://codereview.chromium.org/22750002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@220608 0039d316-1c4b-4281-b951-d872f2087c98 --- content/browser/browser_child_process_host_impl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'content/browser/browser_child_process_host_impl.cc') diff --git a/content/browser/browser_child_process_host_impl.cc b/content/browser/browser_child_process_host_impl.cc index 172674e..f4598be 100644 --- a/content/browser/browser_child_process_host_impl.cc +++ b/content/browser/browser_child_process_host_impl.cc @@ -133,7 +133,7 @@ void BrowserChildProcessHostImpl::Launch( SandboxedProcessLauncherDelegate* delegate, #elif defined(OS_POSIX) bool use_zygote, - const base::EnvironmentVector& environ, + const base::EnvironmentMap& environ, #endif CommandLine* cmd_line) { DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); -- cgit v1.1