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

Unified Diff: remoting/protocol/connection_to_client.cc

Issue 10413060: [Chromoting] Let the Windows IT2Me host send clipboard events to the client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Correct fix. Created 8 years, 7 months 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/protocol/clipboard_thread_proxy.cc ('k') | remoting/remoting.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/connection_to_client.cc
diff --git a/remoting/protocol/connection_to_client.cc b/remoting/protocol/connection_to_client.cc
index 1283172a3a1ad833cb9accd498dbba39beb3954b..ce8cbdba44df3695979ea38a2778a7b7820fbbef 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:
« no previous file with comments | « remoting/protocol/clipboard_thread_proxy.cc ('k') | remoting/remoting.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698