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

Unified Diff: remoting/host/desktop_session_win.cc

Issue 2468523003: Pass the desktop session ID to the remoting network process. (Closed)
Patch Set: rebase 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 805f6c20ed31c88a2279254d75f974c85db33da7..eed188826c0145383300957dcbe5510c808f44b0 100644
--- a/remoting/host/desktop_session_win.cc
+++ b/remoting/host/desktop_session_win.cc
@@ -658,12 +658,14 @@ void DesktopSessionWin::OnSessionAttached(uint32_t session_id) {
// Create a launcher for the desktop process, using the per-session delegate.
launcher_.reset(new WorkerProcessLauncher(std::move(delegate), this));
+ session_id_ = session_id;
}
void DesktopSessionWin::OnSessionDetached() {
DCHECK(caller_task_runner_->BelongsToCurrentThread());
launcher_.reset();
+ session_id_ = UINT32_MAX;
if (monitoring_notifications_) {
ReportElapsedTime("detached");
@@ -676,7 +678,8 @@ void DesktopSessionWin::OnSessionDetached() {
void DesktopSessionWin::OnDesktopSessionAgentAttached(
const IPC::ChannelHandle& desktop_pipe) {
- if (!daemon_process()->OnDesktopSessionAgentAttached(id(), desktop_pipe)) {
+ if (!daemon_process()->OnDesktopSessionAgentAttached(id(), session_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