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

Issue 1935003003: Fixing curtain mode using non-default RDP port for Windows host. (Closed)

Created:
4 years, 7 months ago by joedow
Modified:
4 years, 7 months ago
Reviewers:
Jamie
CC:
chromium-reviews, chromoting-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fixing curtain mode using non-default RDP port for Windows host. While adding debug logging for the Win 10 curtain mode issue, I realized that the host was not able to connect to its RDP session if a non-default port number was set in the registry. This is because the RDP session runs as 'Local Service' and does not have access to the registry. This code was originally added to address crbug.com/241214 and I think it may have been implemented and tested on XP where it would work, but it wouldn't have on later OSes. My change is to move the code which needs to read the port number from the registry from the RDP process to the Daemon process. The port number will then be passed to the RDP process when it is created. The code which reads from the registry will be reused in an upcoming CL so it has been put into a helper method even though there is only one caller. BUG=608477 Committed: https://crrev.com/69094d5f4d39b81cce2e5234804c9868d428af76 Cr-Commit-Position: refs/heads/master@{#391335}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Addressing CR feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -43 lines) Patch
M remoting/host/desktop_session_win.cc View 1 6 chunks +48 lines, -3 lines 0 comments Download
M remoting/host/win/chromoting_lib_idl.templ View 1 chunk +3 lines, -1 line 0 comments Download
M remoting/host/win/rdp_client.h View 1 chunk +6 lines, -6 lines 0 comments Download
M remoting/host/win/rdp_client.cc View 6 chunks +9 lines, -22 lines 0 comments Download
M remoting/host/win/rdp_client_unittest.cc View 2 chunks +6 lines, -4 lines 0 comments Download
M remoting/host/win/rdp_desktop_session.h View 1 chunk +6 lines, -4 lines 0 comments Download
M remoting/host/win/rdp_desktop_session.cc View 2 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
joedow
Fixing a bug I found while adding debug logging for the Win 10 curtain mode ...
4 years, 7 months ago (2016-05-02 22:19:41 UTC) #2
Jamie
LGTM unless you decide to fail the connection in case of error as I suggest. ...
4 years, 7 months ago (2016-05-03 00:18:12 UTC) #3
joedow
Thanks! https://codereview.chromium.org/1935003003/diff/1/remoting/host/desktop_session_win.cc File remoting/host/desktop_session_win.cc (right): https://codereview.chromium.org/1935003003/diff/1/remoting/host/desktop_session_win.cc#newcode277 remoting/host/desktop_session_win.cc:277: server_port = kDefaultRdpPort; On 2016/05/03 00:18:12, Jamie wrote: ...
4 years, 7 months ago (2016-05-03 19:07:08 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1935003003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1935003003/20001
4 years, 7 months ago (2016-05-03 19:10:16 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 7 months ago (2016-05-03 20:00:11 UTC) #8
commit-bot: I haz the power
4 years, 7 months ago (2016-05-03 20:01:40 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/69094d5f4d39b81cce2e5234804c9868d428af76
Cr-Commit-Position: refs/heads/master@{#391335}

Powered by Google App Engine
This is Rietveld 408576698