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

Unified Diff: net/dns/host_resolver_mojo.cc

Issue 1908543002: DNS: Retain stale entries in HostCache and return when requested (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make a few more changes (discussed IRL) Created 4 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/dns/host_resolver_mojo.cc
diff --git a/net/dns/host_resolver_mojo.cc b/net/dns/host_resolver_mojo.cc
index d65a81e1cde63a5b0bd88b5e5727cfc18a0f2532..42801461c0a6121a7cad04f7de50b36f6e80f1aa 100644
--- a/net/dns/host_resolver_mojo.cc
+++ b/net/dns/host_resolver_mojo.cc
@@ -119,8 +119,8 @@ int HostResolverMojo::ResolveFromCacheInternal(const RequestInfo& info,
if (!entry)
return ERR_DNS_CACHE_MISS;
- *addresses = AddressList::CopyWithPort(entry->addrlist, info.port());
- return entry->error;
+ *addresses = AddressList::CopyWithPort(entry->addresses(), info.port());
+ return entry->error();
}
HostResolverMojo::Job::Job(

Powered by Google App Engine
This is Rietveld 408576698