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

Unified Diff: remoting/host/desktop_session_win.cc

Issue 2451953002: Use ChannelMojo between the remoting network and desktop processes. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/desktop_session_win.h ('k') | remoting/host/ipc_desktop_environment.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/desktop_session_win.cc
diff --git a/remoting/host/desktop_session_win.cc b/remoting/host/desktop_session_win.cc
index 1025d8926dcecd4627c16d1e2669124c41db1286..805f6c20ed31c88a2279254d75f974c85db33da7 100644
--- a/remoting/host/desktop_session_win.cc
+++ b/remoting/host/desktop_session_win.cc
@@ -582,15 +582,6 @@ void DesktopSessionWin::OnChannelConnected(int32_t peer_pid) {
ReportElapsedTime("channel connected");
- // Obtain the handle of the desktop process. It will be passed to the network
- // process to use to duplicate handles of shared memory objects from
- // the desktop process.
- desktop_process_.Set(OpenProcess(PROCESS_DUP_HANDLE, false, peer_pid));
- if (!desktop_process_.IsValid()) {
- CrashDesktopProcess(FROM_HERE);
- return;
- }
-
VLOG(1) << "IPC: daemon <- desktop (" << peer_pid << ")";
}
@@ -684,10 +675,8 @@ void DesktopSessionWin::OnSessionDetached() {
}
void DesktopSessionWin::OnDesktopSessionAgentAttached(
- IPC::PlatformFileForTransit desktop_pipe) {
- if (!daemon_process()->OnDesktopSessionAgentAttached(id(),
- desktop_process_.Get(),
- desktop_pipe)) {
+ const IPC::ChannelHandle& desktop_pipe) {
+ if (!daemon_process()->OnDesktopSessionAgentAttached(id(), desktop_pipe)) {
CrashDesktopProcess(FROM_HERE);
}
}
« no previous file with comments | « remoting/host/desktop_session_win.h ('k') | remoting/host/ipc_desktop_environment.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698