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/utility_process_host_impl.h | |
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/utility_process_host_impl.h')
-rw-r--r-- | content/browser/utility_process_host_impl.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/content/browser/utility_process_host_impl.h b/content/browser/utility_process_host_impl.h index 5443e09..039e20f 100644 --- a/content/browser/utility_process_host_impl.h +++ b/content/browser/utility_process_host_impl.h @@ -10,6 +10,7 @@ #include "base/basictypes.h" #include "base/compiler_specific.h" +#include "base/files/file_path.h" #include "base/memory/ref_counted.h" #include "base/memory/scoped_ptr.h" #include "base/memory/weak_ptr.h" @@ -42,7 +43,7 @@ class CONTENT_EXPORT UtilityProcessHostImpl virtual void EnableZygote() OVERRIDE; virtual const ChildProcessData& GetData() OVERRIDE; #if defined(OS_POSIX) - virtual void SetEnv(const base::EnvironmentVector& env) OVERRIDE; + virtual void SetEnv(const base::EnvironmentMap& env) OVERRIDE; #endif void set_child_flags(int flags) { child_flags_ = flags; } @@ -77,7 +78,7 @@ class CONTENT_EXPORT UtilityProcessHostImpl // Launch the utility process from the zygote. Defaults to false. bool use_linux_zygote_; - base::EnvironmentVector env_; + base::EnvironmentMap env_; bool started_; |