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

Unified Diff: remoting/protocol/jingle_session_manager.cc

Issue 9549029: Set incoming_only flag on the host side when NAT traversal is disabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix unittests Created 8 years, 10 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
« no previous file with comments | « remoting/host/simple_host_process.cc ('k') | remoting/protocol/jingle_session_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/jingle_session_manager.cc
diff --git a/remoting/protocol/jingle_session_manager.cc b/remoting/protocol/jingle_session_manager.cc
index 173595484deac5e8510680a549f892e816a7a63f..f457d68a01ac5e4c4d636aae8059a5daed1eb80a 100644
--- a/remoting/protocol/jingle_session_manager.cc
+++ b/remoting/protocol/jingle_session_manager.cc
@@ -40,7 +40,7 @@ void JingleSessionManager::Init(
signal_strategy_ = signal_strategy;
iq_sender_.reset(new IqSender(signal_strategy_));
- transport_config_.nat_traversal = network_settings.allow_nat_traversal;
+ transport_config_.nat_traversal_mode = network_settings.nat_traversal_mode;
transport_config_.min_port = network_settings.min_port;
transport_config_.max_port = network_settings.max_port;
@@ -107,7 +107,8 @@ void JingleSessionManager::OnSignalStrategyStateChange(
SignalStrategy::State state) {
// If NAT traversal is enabled then we need to request STUN/Relay info.
if (state == SignalStrategy::CONNECTED) {
- if (transport_config_.nat_traversal) {
+ if (transport_config_.nat_traversal_mode ==
+ TransportConfig::NAT_TRAVERSAL_ENABLED) {
jingle_info_request_.reset(new JingleInfoRequest(signal_strategy_));
jingle_info_request_->Send(base::Bind(&JingleSessionManager::OnJingleInfo,
base::Unretained(this)));
« no previous file with comments | « remoting/host/simple_host_process.cc ('k') | remoting/protocol/jingle_session_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698