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

Unified Diff: remoting/protocol/connection_to_host.cc

Issue 18452006: Make AudioPlayer optional in ChromotingClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 5 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_host.cc
diff --git a/remoting/protocol/connection_to_host.cc b/remoting/protocol/connection_to_host.cc
index c8fa0893353c2167ee4fc0b8aa17752558178cf4..4b4fc893f793a268f83183e54e07548179b58c04 100644
--- a/remoting/protocol/connection_to_host.cc
+++ b/remoting/protocol/connection_to_host.cc
@@ -127,6 +127,9 @@ void ConnectionToHost::OnSessionManagerReady() {
// After SessionManager is initialized we can try to connect to the host.
scoped_ptr<CandidateSessionConfig> candidate_config =
CandidateSessionConfig::CreateDefault();
+ if (!audio_stub_)
+ CandidateSessionConfig::DisableAudioChannel(candidate_config.get());
+
session_ = session_manager_->Connect(
host_jid_, authenticator_.Pass(), candidate_config.Pass());
session_->SetEventHandler(this);
« remoting/protocol/connection_to_host.h ('K') | « remoting/protocol/connection_to_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698