summaryrefslogtreecommitdiffstats
path: root/remoting/protocol/connection_to_host.cc
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-16 18:08:39 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-16 18:08:39 +0000
commit641ad8b60a66d7f1da23acc417a777b24768af02 (patch)
tree740e39155aa4534b1e599b99a6a0ffe6eae0279a /remoting/protocol/connection_to_host.cc
parent8c83a71cfc4664a2e5643e9ee4bb1bd3ed53eb0e (diff)
downloadchromium_src-641ad8b60a66d7f1da23acc417a777b24768af02.zip
chromium_src-641ad8b60a66d7f1da23acc417a777b24768af02.tar.gz
chromium_src-641ad8b60a66d7f1da23acc417a777b24768af02.tar.bz2
Fix LibjingleTransportFactory to refresh STUN/Relay.
Previously chromoting host would get relay info only when started. Relay token expires within several hours, which means relay session creation would always fail from the host running for longer than several hours, and that makes connection impossible in some configurations. Moved code that gets Jingle info to LibjingleTransportFactory and it's responsible for refreshing relay token every hour. BUG=318897 R=rmsousa@chromium.org Review URL: https://codereview.chromium.org/98173006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240926 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/protocol/connection_to_host.cc')
-rw-r--r--remoting/protocol/connection_to_host.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/remoting/protocol/connection_to_host.cc b/remoting/protocol/connection_to_host.cc
index bcd77e5..e35ba22 100644
--- a/remoting/protocol/connection_to_host.cc
+++ b/remoting/protocol/connection_to_host.cc
@@ -92,8 +92,7 @@ void ConnectionToHost::Connect(SignalStrategy* signal_strategy,
signal_strategy_->AddListener(this);
signal_strategy_->Connect();
- session_manager_.reset(new JingleSessionManager(
- transport_factory.Pass(), allow_nat_traversal_));
+ session_manager_.reset(new JingleSessionManager(transport_factory.Pass()));
session_manager_->Init(signal_strategy_, this);
SetState(CONNECTING, OK);