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

Unified Diff: net/base/host_resolver_proc.cc

Issue 574001: Revert 38078 - Turn off ipv6 when there is no support at startup.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 11 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
« no previous file with comments | « net/base/host_resolver_proc.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/host_resolver_proc.cc
===================================================================
--- net/base/host_resolver_proc.cc (revision 38082)
+++ net/base/host_resolver_proc.cc (working copy)
@@ -227,27 +227,4 @@
return OK;
}
-// TODO(jar): The following is a simple estimate of ipv6 support. We may need
-// to do a test resolution, and a test connection, to REALLY verify support.
-// static
-bool HostResolverProc::IPv6Supported() {
-#if defined(OS_POSIX)
- int test_socket;
-#else
- SOCKET test_socket;
-#endif
-
- test_socket = socket(AF_INET6, SOCK_STREAM, 0);
- if (test_socket == -1)
- return false;
-
-#if defined(OS_POSIX)
- close(test_socket);
-#else
- closesocket(test_socket);
-#endif
-
- return true;
-}
-
} // namespace net
« no previous file with comments | « net/base/host_resolver_proc.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698