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

Unified Diff: net/dns/host_resolver_impl.cc

Issue 1768643002: Remove an incorrect DCHECK() when calling HostResolverImpl::Resolve() with an IP literal and HOST_RE (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 | « no previous file | net/dns/host_resolver_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/host_resolver_impl.cc
diff --git a/net/dns/host_resolver_impl.cc b/net/dns/host_resolver_impl.cc
index af91b09f5e2cb9f5a4ba9c4586877575e8e34071..aa37485f8f4d5e47962e4a3c274cbe8f9655bd74 100644
--- a/net/dns/host_resolver_impl.cc
+++ b/net/dns/host_resolver_impl.cc
@@ -2092,11 +2092,6 @@ bool HostResolverImpl::ResolveAsIP(const Key& key,
if (ip_number == nullptr)
return false;
- DCHECK_EQ(key.host_resolver_flags &
- ~(HOST_RESOLVER_CANONNAME | HOST_RESOLVER_LOOPBACK_ONLY |
- HOST_RESOLVER_DEFAULT_FAMILY_SET_DUE_TO_NO_IPV6),
- 0) << " Unhandled flag";
-
*net_error = OK;
AddressFamily family = GetAddressFamily(*ip_number);
if (key.address_family != ADDRESS_FAMILY_UNSPECIFIED &&
« no previous file with comments | « no previous file | net/dns/host_resolver_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698