diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-30 18:00:39 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-30 18:00:39 +0000 |
commit | b345c488dfae844a0794ead7d883ca3034f95531 (patch) | |
tree | 501d2ee3eed434f851b120af25f65afdccb9c65a /content/browser/browser_child_process_host_impl.cc | |
parent | 23d51ef236f607124c81d4244eec2131ee04f37b (diff) | |
download | chromium_src-b345c488dfae844a0794ead7d883ca3034f95531.zip chromium_src-b345c488dfae844a0794ead7d883ca3034f95531.tar.gz chromium_src-b345c488dfae844a0794ead7d883ca3034f95531.tar.bz2 |
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
Diffstat (limited to 'content/browser/browser_child_process_host_impl.cc')
-rw-r--r-- | content/browser/browser_child_process_host_impl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |