Chromium Code Reviews| Index: remoting/protocol/jingle_session_manager.cc |
| diff --git a/remoting/protocol/jingle_session_manager.cc b/remoting/protocol/jingle_session_manager.cc |
| index 9400afcff8b6529c2f78f68af82b5399988e7a61..115aa00d562b16516dbd492500f5b9a2bcc9b9a4 100644 |
| --- a/remoting/protocol/jingle_session_manager.cc |
| +++ b/remoting/protocol/jingle_session_manager.cc |
| @@ -216,7 +216,7 @@ bool JingleSessionManager::AcceptConnection( |
| listener_->OnIncomingSession(jingle_session, &response); |
| switch (response) { |
| - case protocol::SessionManager::ACCEPT: { |
| + case SessionManager::ACCEPT: { |
| // Connection must be configured by the callback. |
| CandidateSessionConfig* candidate_config = |
| CandidateSessionConfig::CreateFrom(jingle_session->config()); |
| @@ -226,13 +226,14 @@ bool JingleSessionManager::AcceptConnection( |
| break; |
| } |
| - case protocol::SessionManager::INCOMPATIBLE: { |
| - cricket_session->Reject(cricket::STR_TERMINATE_INCOMPATIBLE_PARAMETERS); |
| + case SessionManager::INCOMPATIBLE: { |
| + cricket_session->Terminate( |
|
Sergey Ulanov
2011/09/26 21:30:44
Reject() doesn't include termination reason to the
|
| + cricket::STR_TERMINATE_INCOMPATIBLE_PARAMETERS); |
| return false; |
| } |
| - case protocol::SessionManager::DECLINE: { |
| - cricket_session->Reject(cricket::STR_TERMINATE_DECLINE); |
| + case SessionManager::DECLINE: { |
| + cricket_session->Terminate(cricket::STR_TERMINATE_DECLINE); |
| return false; |
| } |