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

Unified Diff: net/socket/stream_listen_socket.cc

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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: net/socket/stream_listen_socket.cc
diff --git a/net/socket/stream_listen_socket.cc b/net/socket/stream_listen_socket.cc
index d17ce75fec13cb91864d2832865a5cf033397622..140434a6b07b722baa2ffe72dd4ae1e6e9847768 100644
--- a/net/socket/stream_listen_socket.cc
+++ b/net/socket/stream_listen_socket.cc
@@ -74,7 +74,8 @@ StreamListenSocket::~StreamListenSocket() {
#endif
}
-void StreamListenSocket::Send(const char* bytes, int len,
+void StreamListenSocket::Send(const char* bytes,
+ int len,
bool append_linefeed) {
SendInternal(bytes, len);
if (append_linefeed)
@@ -127,7 +128,7 @@ SocketDescriptor StreamListenSocket::AcceptSocket() {
}
void StreamListenSocket::SendInternal(const char* bytes, int len) {
- char* send_buf = const_cast<char *>(bytes);
+ char* send_buf = const_cast<char*>(bytes);
int len_left = len;
while (true) {
int sent = HANDLE_EINTR(send(socket_, send_buf, len_left, 0));
@@ -186,8 +187,8 @@ void StreamListenSocket::Read() {
break;
}
} else if (len == 0) {
- // In Windows, Close() is called by OnObjectSignaled. In POSIX, we need
- // to call it here.
+// In Windows, Close() is called by OnObjectSignaled. In POSIX, we need
+// to call it here.
#if defined(OS_POSIX)
Close();
#endif

Powered by Google App Engine
This is Rietveld 408576698