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

Unified Diff: content/public/common/common_param_traits.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 | « content/public/browser/devtools_http_handler.h ('k') | content/public/common/socket_permission_request.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/common_param_traits.cc
diff --git a/content/public/common/common_param_traits.cc b/content/public/common/common_param_traits.cc
index f4f9a0874b5039c40abc4b9efb5247eb9505a0ef..dcdb7cfffcbfe7045afa7efa3652b96ad490ceb4 100644
--- a/content/public/common/common_param_traits.cc
+++ b/content/public/common/common_param_traits.cc
@@ -102,7 +102,7 @@ void ParamTraits<net::IPEndPoint>::Write(Message* m, const param_type& p) {
bool ParamTraits<net::IPEndPoint>::Read(const Message* m, PickleIterator* iter,
param_type* p) {
net::IPAddressNumber address;
- int port;
+ uint16 port;
if (!ReadParam(m, iter, &address) || !ReadParam(m, iter, &port))
return false;
if (address.size() &&
« no previous file with comments | « content/public/browser/devtools_http_handler.h ('k') | content/public/common/socket_permission_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698