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

Unified Diff: base/process/launch.h

Issue 308073002: Clear environment variables for nacl_helper (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nacl browser tests and android base tests Created 6 years, 7 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 | base/process/launch.cc » ('j') | components/nacl/zygote/nacl_fork_delegate_linux.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process/launch.h
diff --git a/base/process/launch.h b/base/process/launch.h
index 9e39fba6297d92bfcaae23dd89b439c187e99156..2ee173e54fbccd009a2a7fc12bb271210b7e73f9 100644
--- a/base/process/launch.h
+++ b/base/process/launch.h
@@ -88,10 +88,15 @@ struct BASE_EXPORT LaunchOptions {
// job if any.
bool force_breakaway_from_job_;
#else
- // Set/unset environment variables. Empty (the default) means to inherit
- // the same environment. See AlterEnvironment().
+ // Set/unset environment variables. These are applied on top of the parent
+ // process environment. Empty (the default) means to inherit the same
+ // environment. See AlterEnvironment().
EnvironmentMap environ;
+ // Clear the environment for the new process before processing changes from
+ // |environ|.
+ bool clear_environ;
+
// If non-null, remap file descriptors according to the mapping of
// src fd->dest fd to propagate FDs into the child process.
// This pointer is owned by the caller and must live through the
« no previous file with comments | « no previous file | base/process/launch.cc » ('j') | components/nacl/zygote/nacl_fork_delegate_linux.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698