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

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: Don't ref-count ClipboardThreadProxy. 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
Index: remoting/protocol/connection_to_client.cc
diff --git a/remoting/protocol/connection_to_client.cc b/remoting/protocol/connection_to_client.cc
index d9670469138cd08c730c012ee93dec17ed1466a9..3088389d5d55d2d6b6e3023366f0873266f67e5c 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(
@@ -123,6 +121,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:

Powered by Google App Engine
This is Rietveld 408576698