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

Unified Diff: remoting/protocol/jingle_session.cc

Issue 9316052: Log IP/port of host as well as client in Me2Me host (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 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
Index: remoting/protocol/jingle_session.cc
diff --git a/remoting/protocol/jingle_session.cc b/remoting/protocol/jingle_session.cc
index 907bc93265c497d3715f55604a723f90f194048b..f7b264139109f58e358f4f4245557bd6e8b40d2b 100644
--- a/remoting/protocol/jingle_session.cc
+++ b/remoting/protocol/jingle_session.cc
@@ -514,8 +514,17 @@ void JingleSession::OnRouteChange(cricket::TransportChannel* channel,
return;
}
+ const cricket::Candidate& local_candidate =
+ channel->GetP2PChannel()->best_connection()->local_candidate();
Sergey Ulanov 2012/02/02 01:10:23 add DCHECK(channel->GetP2PChannel()) and DCHECK(ch
Lambros 2012/02/02 01:48:12 Done.
+ net::IPEndPoint local_end_point;
+ if (!jingle_glue::SocketAddressToIPEndPoint(local_candidate.address(),
+ &local_end_point)) {
+ NOTREACHED();
+ return;
+ }
+
if (!route_change_callback_.is_null())
- route_change_callback_.Run(channel->name(), end_point);
+ route_change_callback_.Run(channel->name(), end_point, local_end_point);
}
const cricket::ContentInfo* JingleSession::GetContentInfo() const {

Powered by Google App Engine
This is Rietveld 408576698