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

Unified Diff: extensions/browser/api/sockets_udp/udp_socket_event_dispatcher.cc

Issue 717263003: Use uint16 for port numbers, extensions/ edition (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Self-review 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
Index: extensions/browser/api/sockets_udp/udp_socket_event_dispatcher.cc
diff --git a/extensions/browser/api/sockets_udp/udp_socket_event_dispatcher.cc b/extensions/browser/api/sockets_udp/udp_socket_event_dispatcher.cc
index b36ebcca8d6ef638dde807f86e39585a37675b3e..d67528e86ede448c48650d6e96bb5cc465822186 100644
--- a/extensions/browser/api/sockets_udp/udp_socket_event_dispatcher.cc
+++ b/extensions/browser/api/sockets_udp/udp_socket_event_dispatcher.cc
@@ -100,7 +100,7 @@ void UDPSocketEventDispatcher::ReceiveCallback(
int bytes_read,
scoped_refptr<net::IOBuffer> io_buffer,
const std::string& address,
- int port) {
+ uint16 port) {
DCHECK_CURRENTLY_ON(params.thread_id);
// If |bytes_read| == 0, the message contained no data.

Powered by Google App Engine
This is Rietveld 408576698