Index: remoting/protocol/connection_to_host.cc |
diff --git a/remoting/protocol/connection_to_host.cc b/remoting/protocol/connection_to_host.cc |
index d2ce7ff3112e38ca2ac0af19ca3b04041a399475..73a0be309919bec64c9aa70f0bac7e1a3031b696 100644 |
--- a/remoting/protocol/connection_to_host.cc |
+++ b/remoting/protocol/connection_to_host.cc |
@@ -129,8 +129,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()); |
+ if (!audio_stub_) { |
+ candidate_config->DisableAudioChannel(); |
+ } |
session_ = session_manager_->Connect( |
host_jid_, authenticator_.Pass(), candidate_config.Pass()); |