summaryrefslogtreecommitdiffstats
path: root/remoting/protocol/jingle_session_manager.cc
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-29 18:18:14 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-29 18:18:14 +0000
commit15241d869e70294ff2c4e20bfe963dc68974c87e (patch)
tree3a1059d3a5046c1448e5b954296bed3e056ed681 /remoting/protocol/jingle_session_manager.cc
parent007ed1d91a47828586d4416c942b3999984f116e (diff)
downloadchromium_src-15241d869e70294ff2c4e20bfe963dc68974c87e.zip
chromium_src-15241d869e70294ff2c4e20bfe963dc68974c87e.tar.gz
chromium_src-15241d869e70294ff2c4e20bfe963dc68974c87e.tar.bz2
Remove JingleSessionManager::set_allow_local_ips().
Currently allow_local_ips is always set to true, and there is no reason not to allow local IP addresses. Review URL: http://codereview.chromium.org/8728011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111973 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/protocol/jingle_session_manager.cc')
-rw-r--r--remoting/protocol/jingle_session_manager.cc9
1 files changed, 2 insertions, 7 deletions
diff --git a/remoting/protocol/jingle_session_manager.cc b/remoting/protocol/jingle_session_manager.cc
index e1a935d..8408f94 100644
--- a/remoting/protocol/jingle_session_manager.cc
+++ b/remoting/protocol/jingle_session_manager.cc
@@ -31,7 +31,6 @@ JingleSessionManager::JingleSessionManager(
: message_loop_(message_loop),
signal_strategy_(NULL),
allow_nat_traversal_(false),
- allow_local_ips_(false),
http_port_allocator_(NULL),
closed_(false),
ALLOW_THIS_IN_INITIALIZER_LIST(task_factory_(this)) {
@@ -120,10 +119,6 @@ void JingleSessionManager::Close() {
}
}
-void JingleSessionManager::set_allow_local_ips(bool allow_local_ips) {
- allow_local_ips_ = allow_local_ips;
-}
-
Session* JingleSessionManager::Connect(
const std::string& host_jid,
const std::string& host_public_key,
@@ -156,8 +151,8 @@ void JingleSessionManager::OnSessionCreate(
cricket::Session* cricket_session, bool incoming) {
DCHECK(CalledOnValidThread());
- // Allow local connections if neccessary.
- cricket_session->set_allow_local_ips(allow_local_ips_);
+ // Allow local connections.
+ cricket_session->set_allow_local_ips(true);
// If this is an incoming session, create a JingleSession on top of it.
if (incoming) {