summaryrefslogtreecommitdiffstats
path: root/remoting/protocol/connection_to_client.cc
diff options
context:
space:
mode:
Diffstat (limited to 'remoting/protocol/connection_to_client.cc')
-rw-r--r--remoting/protocol/connection_to_client.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/remoting/protocol/connection_to_client.cc b/remoting/protocol/connection_to_client.cc
index 1283172..ce8cbdb 100644
--- a/remoting/protocol/connection_to_client.cc
+++ b/remoting/protocol/connection_to_client.cc
@@ -102,8 +102,6 @@ void ConnectionToClient::OnSessionStateChange(Session::State state) {
break;
case Session::AUTHENTICATED:
- handler_->OnConnectionAuthenticated(this);
-
// Initialize channels.
control_dispatcher_.reset(new HostControlDispatcher());
control_dispatcher_->Init(session_.get(), base::Bind(
@@ -122,6 +120,9 @@ void ConnectionToClient::OnSessionStateChange(Session::State state) {
video_writer_->Init(session_.get(), base::Bind(
&ConnectionToClient::OnChannelInitialized, base::Unretained(this)));
+ // Notify the handler after initializing the channels, so that
+ // ClientSession can get a client clipboard stub.
+ handler_->OnConnectionAuthenticated(this);
break;
case Session::CLOSED: