summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorgwilson@google.com <gwilson@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-18 23:01:52 +0000
committergwilson@google.com <gwilson@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-18 23:01:52 +0000
commitc020ddcd758257c58849298027f6ca9dd5554efe (patch)
tree2c7cf8d853778efc6b3d6ca589d198c28f1f5938 /chrome
parent3e1fc8ea295d450e864b8e156617399f4f2f672f (diff)
downloadchromium_src-c020ddcd758257c58849298027f6ca9dd5554efe.zip
chromium_src-c020ddcd758257c58849298027f6ca9dd5554efe.tar.gz
chromium_src-c020ddcd758257c58849298027f6ca9dd5554efe.tar.bz2
Adds new API to process_utils to launch a new app as a user in a specified desktop. Also modifies toast behavior to use this API instead.
R=huanr,cpu BUG=none TEST=Run system-level toast with an attached user, toast should be visible. Review URL: http://codereview.chromium.org/596087 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39391 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/installer/util/google_chrome_distribution.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/installer/util/google_chrome_distribution.cc b/chrome/installer/util/google_chrome_distribution.cc
index 2376f6a..96e3d0b 100644
--- a/chrome/installer/util/google_chrome_distribution.cc
+++ b/chrome/installer/util/google_chrome_distribution.cc
@@ -138,6 +138,8 @@ bool RelaunchSetup(const std::wstring& flag, int value,
// windowstation.
// The function fails if there is no interactive session active, basically
// the computer is on but nobody has logged in locally.
+// Remote Desktop sessions do not count as interactive sessions; running this
+// method as a user logged in via remote desktop will do nothing.
bool RelaunchSetupAsConsoleUser(const std::wstring& flag) {
CommandLine cmd_line(CommandLine::ForCurrentProcess()->GetProgram());
cmd_line.AppendSwitch(WideToASCII(flag));
@@ -150,7 +152,7 @@ bool RelaunchSetupAsConsoleUser(const std::wstring& flag) {
return false;
bool launched = base::LaunchAppAsUser(user_token,
cmd_line.command_line_string(),
- false, NULL);
+ false, NULL, true);
::CloseHandle(user_token);
return launched;
}