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

Unified Diff: net/socket/socket_descriptor.cc

Issue 1535363003: Switch to standard integer types in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stddef 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 | « net/socket/socket.h ('k') | net/socket/socket_test_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/socket_descriptor.cc
diff --git a/net/socket/socket_descriptor.cc b/net/socket/socket_descriptor.cc
index 81787a29d259feb645bfd53978cd33e71fadfd7c..2744d668b0508a2070d123345677063efd180aca 100644
--- a/net/socket/socket_descriptor.cc
+++ b/net/socket/socket_descriptor.cc
@@ -9,8 +9,6 @@
#include <sys/socket.h>
#endif
-#include "base/basictypes.h"
-
#if defined(OS_WIN)
#include <ws2tcpip.h>
#include "base/win/windows_version.h"
@@ -19,7 +17,7 @@
namespace net {
-PlatformSocketFactory* g_socket_factory = NULL;
+PlatformSocketFactory* g_socket_factory = nullptr;
PlatformSocketFactory::PlatformSocketFactory() {
}
@@ -34,7 +32,7 @@ void PlatformSocketFactory::SetInstance(PlatformSocketFactory* factory) {
SocketDescriptor CreateSocketDefault(int family, int type, int protocol) {
#if defined(OS_WIN)
EnsureWinsockInit();
- SocketDescriptor result = ::WSASocket(family, type, protocol, NULL, 0,
+ SocketDescriptor result = ::WSASocket(family, type, protocol, nullptr, 0,
WSA_FLAG_OVERLAPPED);
if (result != kInvalidSocket && family == AF_INET6 &&
base::win::OSInfo::GetInstance()->version() >= base::win::VERSION_VISTA) {
« no previous file with comments | « net/socket/socket.h ('k') | net/socket/socket_test_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698