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

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

Issue 598173003: Run clang-modernize -use-nullptr over src/extensions/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months 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/socket/udp_socket.cc
diff --git a/extensions/browser/api/socket/udp_socket.cc b/extensions/browser/api/socket/udp_socket.cc
index 50da3e23d86abeb9fd489695ce50c67be88035dc..4da81f6a9114d1b88401133ec1bd5b43ef72bd2c 100644
--- a/extensions/browser/api/socket/udp_socket.cc
+++ b/extensions/browser/api/socket/udp_socket.cc
@@ -30,8 +30,9 @@ UDPSocket::UDPSocket(const std::string& owner_extension_id)
: Socket(owner_extension_id),
socket_(net::DatagramSocket::DEFAULT_BIND,
net::RandIntCallback(),
- NULL,
- net::NetLog::Source()) {}
+ nullptr,
+ net::NetLog::Source()) {
+}
UDPSocket::~UDPSocket() { Disconnect(); }
@@ -80,7 +81,7 @@ void UDPSocket::Read(int count, const ReadCompletionCallback& callback) {
DCHECK(!callback.is_null());
if (!read_callback_.is_null()) {
- callback.Run(net::ERR_IO_PENDING, NULL);
+ callback.Run(net::ERR_IO_PENDING, nullptr);
return;
} else {
read_callback_ = callback;
@@ -125,7 +126,7 @@ void UDPSocket::RecvFrom(int count,
DCHECK(!callback.is_null());
if (!recv_from_callback_.is_null()) {
- callback.Run(net::ERR_IO_PENDING, NULL, std::string(), 0);
+ callback.Run(net::ERR_IO_PENDING, nullptr, std::string(), 0);
return;
} else {
recv_from_callback_ = callback;

Powered by Google App Engine
This is Rietveld 408576698