Index: remoting/host/client_session.cc |
diff --git a/remoting/host/client_session.cc b/remoting/host/client_session.cc |
index 7db5498373ec3b3098c19f3a2db58323c86a33c9..12f3bef3f8802d71f50788b340e24126f1817d66 100644 |
--- a/remoting/host/client_session.cc |
+++ b/remoting/host/client_session.cc |
@@ -10,6 +10,7 @@ |
#include "remoting/host/capturer.h" |
#include "remoting/proto/control.pb.h" |
#include "remoting/proto/event.pb.h" |
+#include "remoting/protocol/client_stub.h" |
namespace remoting { |
@@ -34,6 +35,7 @@ ClientSession::ClientSession( |
connection_->set_clipboard_stub(this); |
connection_->set_host_stub(this); |
connection_->set_input_stub(this); |
+ clipboard_echo_filter_.set_host_stub(host_event_stub_); |
} |
ClientSession::~ClientSession() { |
@@ -50,7 +52,7 @@ void ClientSession::InjectClipboardEvent( |
if (disable_input_filter_.input_stub() == NULL) |
return; |
- host_event_stub_->InjectClipboardEvent(event); |
+ clipboard_echo_filter_.get_host_filter()->InjectClipboardEvent(event); |
} |
void ClientSession::InjectKeyEvent(const protocol::KeyEvent& event) { |
@@ -91,6 +93,7 @@ void ClientSession::OnConnectionAuthenticated( |
DCHECK(CalledOnValidThread()); |
DCHECK_EQ(connection_.get(), connection); |
auth_input_filter_.set_input_stub(&disable_input_filter_); |
+ clipboard_echo_filter_.set_client_stub(connection_->client_stub()); |
event_handler_->OnSessionAuthenticated(this); |
} |