Index: remoting/host/client_session.cc |
diff --git a/remoting/host/client_session.cc b/remoting/host/client_session.cc |
index 99c7ed509963a449f2a799cf36e044f4d7cbe00c..d92e0091f148cecb5ea8420d407e720338be5b27 100644 |
--- a/remoting/host/client_session.cc |
+++ b/remoting/host/client_session.cc |
@@ -88,7 +88,8 @@ ClientSession::ClientSession( |
connection_->SetEventHandler(this); |
// Create a manager for the configured extensions, if any. |
- extension_manager_.reset(new HostExtensionSessionManager(extensions, this)); |
+ extension_manager_.reset( |
+ new HostExtensionSessionManager(extensions, this, this)); |
#if defined(OS_WIN) |
// LocalInputMonitorWin filters out an echo of the injected input before it |
@@ -425,6 +426,12 @@ void ClientSession::SetDisableInputs(bool disable_inputs) { |
disable_clipboard_filter_.set_enabled(!disable_inputs); |
} |
+uint32_t ClientSession::desktop_session_id() const { |
+ DCHECK(CalledOnValidThread()); |
+ return desktop_environment_ ? desktop_environment_->GetDesktopSessionId() |
+ : UINT32_MAX; |
+} |
+ |
std::unique_ptr<protocol::ClipboardStub> ClientSession::CreateClipboardProxy() { |
DCHECK(CalledOnValidThread()); |