Chromium Code Reviews| Index: components/network_hints/renderer/prescient_networking_dispatcher.cc |
| diff --git a/components/network_hints/renderer/prescient_networking_dispatcher.cc b/components/network_hints/renderer/prescient_networking_dispatcher.cc |
| index a5599c99b0aa80209042a3d7a35516e155ab386d..47fb5ada191e5e745df276f9d0aa325bc3159f0a 100644 |
| --- a/components/network_hints/renderer/prescient_networking_dispatcher.cc |
| +++ b/components/network_hints/renderer/prescient_networking_dispatcher.cc |
| @@ -24,9 +24,12 @@ void PrescientNetworkingDispatcher::prefetchDNS( |
| dns_prefetch_.Resolve(hostname_utf8.data(), hostname_utf8.length()); |
| } |
| -void PrescientNetworkingDispatcher::preconnect(const blink::WebURL& url) { |
| +void PrescientNetworkingDispatcher::preconnect(const blink::WebURL& url, |
| + const blink::CrossOriginAttributeValue crossOrigin) { |
| VLOG(2) << "Preconnect: " << url.string().utf8(); |
| - preconnect_.Preconnect(url); |
| + bool is_credentials_flag_set = |
| + (crossOrigin != blink::CrossOriginAttributeAnonymous); |
|
Ryan Sleevi
2015/06/11 22:20:16
I feel like this logic should live in the //third_
|
| + preconnect_.Preconnect(url, is_credentials_flag_set); |
| } |
| } // namespace network_hints |