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

Unified Diff: net/socket/socket_descriptor.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/socket_descriptor.cc
diff --git a/net/socket/socket_descriptor.cc b/net/socket/socket_descriptor.cc
index 81787a29d259feb645bfd53978cd33e71fadfd7c..51ccdf169850a7bead80cdf860b404a02b4a323d 100644
--- a/net/socket/socket_descriptor.cc
+++ b/net/socket/socket_descriptor.cc
@@ -34,19 +34,22 @@ 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,
- WSA_FLAG_OVERLAPPED);
+ SocketDescriptor result =
+ ::WSASocket(family, type, protocol, NULL, 0, WSA_FLAG_OVERLAPPED);
if (result != kInvalidSocket && family == AF_INET6 &&
base::win::OSInfo::GetInstance()->version() >= base::win::VERSION_VISTA) {
DWORD value = 0;
- if (setsockopt(result, IPPROTO_IPV6, IPV6_V6ONLY,
- reinterpret_cast<const char*>(&value), sizeof(value))) {
+ if (setsockopt(result,
+ IPPROTO_IPV6,
+ IPV6_V6ONLY,
+ reinterpret_cast<const char*>(&value),
+ sizeof(value))) {
closesocket(result);
return kInvalidSocket;
}
}
return result;
-#else // OS_WIN
+#else // OS_WIN
return ::socket(family, type, protocol);
#endif // OS_WIN
}

Powered by Google App Engine
This is Rietveld 408576698