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

Unified Diff: content/browser/loader/resource_hints_impl.cc

Issue 2377683002: Set speculative bool on dns-preresolves in //content (Closed)
Patch Set: Created 4 years, 3 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/loader/resource_hints_impl.cc
diff --git a/content/browser/loader/resource_hints_impl.cc b/content/browser/loader/resource_hints_impl.cc
index 252145b7602b5e1c6ac86a88bbcc7aaee99454ed..cc48a1ad316b6bc81bbea0e9a37e56e5ce7d861e 100644
--- a/content/browser/loader/resource_hints_impl.cc
+++ b/content/browser/loader/resource_hints_impl.cc
@@ -94,6 +94,7 @@ int PreresolveUrl(content::ResourceContext* resource_context,
net::AddressList* addresses = new net::AddressList;
net::HostResolver* resolver = resource_context->GetHostResolver();
net::HostResolver::RequestInfo resolve_info(net::HostPortPair::FromURL(url));
+ resolve_info.set_is_speculative(true);
return resolver->Resolve(
resolve_info, net::IDLE, addresses,
base::Bind(&OnResolveComplete, base::Owned(request_holder),
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698