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

Unified Diff: extensions/browser/api/socket/udp_socket.cc

Issue 1549643002: Switch to standard integer types in extensions/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clean
Patch Set: Created 5 years 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 | « extensions/browser/api/socket/udp_socket.h ('k') | extensions/browser/api/sockets_tcp/sockets_tcp_api.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/api/socket/udp_socket.cc
diff --git a/extensions/browser/api/socket/udp_socket.cc b/extensions/browser/api/socket/udp_socket.cc
index 47eae2d735153c7641061c85022e4df53d9828db..3aa57291124137122fef9f101b9b7b0ff902638f 100644
--- a/extensions/browser/api/socket/udp_socket.cc
+++ b/extensions/browser/api/socket/udp_socket.cc
@@ -60,7 +60,7 @@ void UDPSocket::Connect(const net::AddressList& address,
callback.Run(result);
}
-int UDPSocket::Bind(const std::string& address, uint16 port) {
+int UDPSocket::Bind(const std::string& address, uint16_t port) {
if (IsBound())
return net::ERR_CONNECTION_FAILED;
@@ -226,7 +226,7 @@ void UDPSocket::OnRecvFromComplete(scoped_refptr<net::IOBuffer> io_buffer,
int result) {
DCHECK(!recv_from_callback_.is_null());
std::string ip;
- uint16 port = 0;
+ uint16_t port = 0;
if (result > 0 && address.get()) {
IPEndPointToStringAndPort(address->data, &ip, &port);
}
« no previous file with comments | « extensions/browser/api/socket/udp_socket.h ('k') | extensions/browser/api/sockets_tcp/sockets_tcp_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698