summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-19 16:30:27 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-19 16:30:27 +0000
commite22cf993eae0a94e08df91255a46557623b9f6d4 (patch)
tree0368ac171b565c431198f1c938db2bbc685ef5ee /base
parenta1ed44a4da1ef5d3466814d4e0256d1248251b42 (diff)
downloadchromium_src-e22cf993eae0a94e08df91255a46557623b9f6d4.zip
chromium_src-e22cf993eae0a94e08df91255a46557623b9f6d4.tar.gz
chromium_src-e22cf993eae0a94e08df91255a46557623b9f6d4.tar.bz2
Remove LaunchAppAsUser().
This is the last of the LaunchApp family. BUG=88990 Review URL: http://codereview.chromium.org/7409004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93034 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r--base/process_util.h24
-rw-r--r--base/process_util_unittest.cc4
2 files changed, 3 insertions, 25 deletions
diff --git a/base/process_util.h b/base/process_util.h
index 2a3e82c..e55b610 100644
--- a/base/process_util.h
+++ b/base/process_util.h
@@ -295,30 +295,6 @@ BASE_API bool LaunchProcess(const string16& cmdline,
const LaunchOptions& options,
ProcessHandle* process_handle);
-// TODO(evan): deprecated; change callers to use LaunchProcess, remove.
-inline bool LaunchAppAsUser(UserTokenHandle token,
- const std::wstring& cmdline,
- bool start_hidden,
- ProcessHandle* process_handle) {
- LaunchOptions options;
- options.start_hidden = start_hidden;
- options.as_user = token;
- return LaunchProcess(cmdline, options, process_handle);
-}
-
-// TODO(evan): deprecated; change callers to use LaunchProcess, remove.
-inline bool LaunchAppAsUser(UserTokenHandle token,
- const std::wstring& cmdline,
- bool start_hidden, ProcessHandle* process_handle,
- bool empty_desktop_name, bool inherit_handles) {
- LaunchOptions options;
- options.start_hidden = start_hidden;
- options.as_user = token;
- options.empty_desktop_name = empty_desktop_name;
- options.inherit_handles = inherit_handles;
- return LaunchProcess(cmdline, options, process_handle);
-}
-
#elif defined(OS_POSIX)
// A POSIX-specific version of LaunchProcess that takes an argv array
// instead of a CommandLine. Useful for situations where you need to
diff --git a/base/process_util_unittest.cc b/base/process_util_unittest.cc
index 09d3b50..c2200db 100644
--- a/base/process_util_unittest.cc
+++ b/base/process_util_unittest.cc
@@ -390,7 +390,9 @@ TEST_F(ProcessUtilTest, LaunchAsUser) {
ASSERT_TRUE(OpenProcessToken(GetCurrentProcess(), TOKEN_ALL_ACCESS, &token));
std::wstring cmdline =
this->MakeCmdLine("SimpleChildProcess", false).command_line_string();
- EXPECT_TRUE(base::LaunchAppAsUser(token, cmdline, false, NULL));
+ base::LaunchOptions options;
+ options.as_user = token;
+ EXPECT_TRUE(base::LaunchProcess(cmdline, options, NULL));
}
#endif // defined(OS_WIN)