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

Issue 10911267: [Chromoting] Don't use a job object to control the me2me host process on Windows XP. (Closed)

Created:
8 years, 3 months ago by alexeypa (please no reviews)
Modified:
8 years, 3 months ago
Reviewers:
Wez
CC:
chromium-reviews, jamiewalch+watch_chromium.org, dcaiafa+watch_chromium.org, simonmorris+watch_chromium.org, hclam+watch_chromium.org, wez+watch_chromium.org, amit, sanjeevr, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, rmsousa+watch_chromium.org, alexeypa+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

[Chromoting] Don't use a job object to control the me2me host process on Windows XP. The host binary specifies uiAccess='true' in its manifest that requires ShellExecute() to be used to launch it. Since ShellExecute() does not work across the session boundary we use a helper process to launch the me2me host. A job object is used to control both the helper process and the host process, so that they can be terminated if needed. Unfortunately, the helper process spawned by CreateRemoteSessionProcess() function cannot be assigned to a job object on Windows XP/2K3. This CL works it around by using two different kaunchers for XP and Vista+: - XP launches the host process directly using CreateRemoteSessionProcess(). uiAccess='true' is ignored on XP and ShellExecute() call is not necessary; - Vista+ used the helper process to launch the host and assigns boths processes to a job object. BUG=148781 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=157490

Patch Set 1 #

Patch Set 2 : The session_token and worker_process handles can be overwritten. #

Patch Set 3 : CR feedback. #

Total comments: 36

Patch Set 4 : CR feedback. #

Patch Set 5 : made compilable on VS2008. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+414 lines, -193 lines) Patch
M remoting/host/win/wts_session_process_launcher.h View 1 2 3 5 chunks +6 lines, -51 lines 0 comments Download
M remoting/host/win/wts_session_process_launcher.cc View 1 2 3 4 8 chunks +408 lines, -142 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
alexeypa (please no reviews)
PTAL.
8 years, 3 months ago (2012-09-12 21:48:51 UTC) #1
Wez
LGTM w/ nits. https://chromiumcodereview.appspot.com/10911267/diff/5001/remoting/host/win/wts_session_process_launcher.cc File remoting/host/win/wts_session_process_launcher.cc (right): https://chromiumcodereview.appspot.com/10911267/diff/5001/remoting/host/win/wts_session_process_launcher.cc#newcode90 remoting/host/win/wts_session_process_launcher.cc:90: // Implements |WorkerProcessLauncher::Delegate| that starts the ...
8 years, 3 months ago (2012-09-14 23:36:18 UTC) #2
alexeypa (please no reviews)
FYI https://chromiumcodereview.appspot.com/10911267/diff/5001/remoting/host/win/wts_session_process_launcher.cc File remoting/host/win/wts_session_process_launcher.cc (right): https://chromiumcodereview.appspot.com/10911267/diff/5001/remoting/host/win/wts_session_process_launcher.cc#newcode90 remoting/host/win/wts_session_process_launcher.cc:90: // Implements |WorkerProcessLauncher::Delegate| that starts the host process ...
8 years, 3 months ago (2012-09-18 16:58:06 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alexeypa@chromium.org/10911267/8001
8 years, 3 months ago (2012-09-18 16:59:13 UTC) #4
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build. Your ...
8 years, 3 months ago (2012-09-18 18:50:07 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alexeypa@chromium.org/10911267/18003
8 years, 3 months ago (2012-09-18 23:02:41 UTC) #6
commit-bot: I haz the power
8 years, 3 months ago (2012-09-19 04:03:56 UTC) #7
Change committed as 157490

Powered by Google App Engine
This is Rietveld 408576698