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

Unified Diff: remoting/host/remoting_me2me_host.cc

Issue 655063002: Use uint16 for port numbers more pervasively. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert bad change Created 6 years, 1 month 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/win/rdp_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/remoting_me2me_host.cc
diff --git a/remoting/host/remoting_me2me_host.cc b/remoting/host/remoting_me2me_host.cc
index f880803c2c3388a96b66652c85f1ad8c4df16951..a01122a26dc5a7d88c30be3bd39860bfb6620f2e 100644
--- a/remoting/host/remoting_me2me_host.cc
+++ b/remoting/host/remoting_me2me_host.cc
@@ -306,8 +306,8 @@ class HostProcess
bool host_username_match_required_;
bool allow_nat_traversal_;
bool allow_relay_;
- int min_udp_port_;
- int max_udp_port_;
+ uint16 min_udp_port_;
+ uint16 max_udp_port_;
std::string talkgadget_prefix_;
bool allow_pairing_;
@@ -1067,8 +1067,8 @@ bool HostProcess::OnUdpPortPolicyUpdate(base::DictionaryValue* policies) {
}
// Use default values if policy setting is empty or invalid.
- int min_udp_port = 0;
- int max_udp_port = 0;
+ uint16 min_udp_port = 0;
+ uint16 max_udp_port = 0;
if (!udp_port_range.empty() &&
!NetworkSettings::ParsePortRange(udp_port_range, &min_udp_port,
&max_udp_port)) {
« no previous file with comments | « remoting/host/chromoting_messages.h ('k') | remoting/host/win/rdp_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698