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

Unified Diff: remoting/client/chromoting_client.cc

Issue 279273002: Move ConnectionToHost parameters out from Connect() call. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments. Created 6 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 | « no previous file | remoting/client/plugin/chromoting_instance.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/chromoting_client.cc
diff --git a/remoting/client/chromoting_client.cc b/remoting/client/chromoting_client.cc
index 40eddcd3ae8d5d217e188d8d7a5cbbf0dd62803d..bc18249dcaf081f317d192dcefeeee18882128ba 100644
--- a/remoting/client/chromoting_client.cc
+++ b/remoting/client/chromoting_client.cc
@@ -66,16 +66,17 @@ void ChromotingClient::Start(
// Create a WeakPtr to ourself for to use for all posted tasks.
weak_ptr_ = weak_factory_.GetWeakPtr();
+ connection_->set_client_stub(this);
+ connection_->set_clipboard_stub(this);
+ connection_->set_video_stub(video_renderer_);
+ connection_->set_audio_stub(audio_decode_scheduler_.get());
+
connection_->Connect(signal_strategy,
- config_.host_jid,
- config_.host_public_key,
transport_factory.Pass(),
authenticator.Pass(),
- this,
- this,
- this,
- video_renderer_,
- audio_decode_scheduler_.get());
+ config_.host_jid,
+ config_.host_public_key,
+ this);
}
void ChromotingClient::SetCapabilities(
« no previous file with comments | « no previous file | remoting/client/plugin/chromoting_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698