diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-12 21:53:33 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-12 21:53:33 +0000 |
commit | e53f0d679b2d9e06cf056fa80d8e5175f1ff59e2 (patch) | |
tree | e718f5ab4cd54f0e49cc2a28f4afce9ea20f865d /base/process_util.h | |
parent | 8266d6688589e140bf71fb862be16239880e20e6 (diff) | |
download | chromium_src-e53f0d679b2d9e06cf056fa80d8e5175f1ff59e2.zip chromium_src-e53f0d679b2d9e06cf056fa80d8e5175f1ff59e2.tar.gz chromium_src-e53f0d679b2d9e06cf056fa80d8e5175f1ff59e2.tar.bz2 |
Revert "Clean up users of a deprecated base::LaunchApp API."
This reverts commit r92240, ChromeOS failures.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92244 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/process_util.h')
-rw-r--r-- | base/process_util.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/base/process_util.h b/base/process_util.h index 6820d42..a7b5aa8 100644 --- a/base/process_util.h +++ b/base/process_util.h @@ -347,6 +347,17 @@ inline bool LaunchAppAsUser(UserTokenHandle token, BASE_API bool LaunchProcess(const std::vector<std::string>& argv, const LaunchOptions& options); +// TODO(evan): deprecated; change callers to use LaunchProcess, remove. +inline bool LaunchApp(const std::vector<std::string>& argv, + const file_handle_mapping_vector& fds_to_remap, + bool wait, ProcessHandle* process_handle) { + LaunchOptions options; + options.fds_to_remap = &fds_to_remap; + options.wait = wait; + options.process_handle = process_handle; + return LaunchProcess(argv, options); +} + // AlterEnvironment returns a modified environment vector, constructed from the // given environment and the list of changes given in |changes|. Each key in // the environment is matched against the first element of the pairs. In the |