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

Unified Diff: remoting/host/daemon_process.cc

Issue 2365213002: Remove content dependency from remoting/host (Closed)
Patch Set: . Created 4 years, 3 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/chromoting_messages.h ('k') | remoting/host/ipc_host_event_logger.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/daemon_process.cc
diff --git a/remoting/host/daemon_process.cc b/remoting/host/daemon_process.cc
index 3482f978d6cfd778b8be28c3c043d17a8742f051..ad00c95eb6fa94cce9da07eabf1842fcd04e743f 100644
--- a/remoting/host/daemon_process.cc
+++ b/remoting/host/daemon_process.cc
@@ -334,8 +334,15 @@ void DaemonProcess::OnClientRouteChange(const std::string& jid,
protocol::TransportRoute parsed_route;
parsed_route.type = route.type;
- parsed_route.remote_address = route.remote_address;
- parsed_route.local_address = route.local_address;
+
+ net::IPAddress remote_ip(route.remote_ip);
+ CHECK(remote_ip.empty() || remote_ip.IsValid());
+ parsed_route.remote_address = net::IPEndPoint(remote_ip, route.remote_port);
+
+ net::IPAddress local_ip(route.local_ip);
+ CHECK(local_ip.empty() || local_ip.IsValid());
+ parsed_route.local_address = net::IPEndPoint(local_ip, route.local_port);
+
FOR_EACH_OBSERVER(HostStatusObserver, status_observers_,
OnClientRouteChange(jid, channel_name, parsed_route));
}
« no previous file with comments | « remoting/host/chromoting_messages.h ('k') | remoting/host/ipc_host_event_logger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698