Index: third_party/WebKit/Source/core/html/parser/HTMLResourcePreloader.cpp |
diff --git a/third_party/WebKit/Source/core/html/parser/HTMLResourcePreloader.cpp b/third_party/WebKit/Source/core/html/parser/HTMLResourcePreloader.cpp |
index bff78e5ee0e75b3a375709a07ead6407db57a152..9e333e21181af9199d3bfe22b43d700f9974f642 100644 |
--- a/third_party/WebKit/Source/core/html/parser/HTMLResourcePreloader.cpp |
+++ b/third_party/WebKit/Source/core/html/parser/HTMLResourcePreloader.cpp |
@@ -56,14 +56,7 @@ static void preconnectHost(PreloadRequest* request, const NetworkHintsInterface& |
KURL host(request->baseURL(), request->resourceURL()); |
if (!host.isValid() || !host.protocolIsInHTTPFamily()) |
return; |
- CrossOriginAttributeValue crossOrigin = CrossOriginAttributeNotSet; |
- if (request->isCORS()) { |
- if (request->isAllowCredentials()) |
- crossOrigin = CrossOriginAttributeUseCredentials; |
- else |
- crossOrigin = CrossOriginAttributeAnonymous; |
- } |
- networkHintsInterface.preconnectHost(host, crossOrigin); |
+ networkHintsInterface.preconnectHost(host, request->crossOrigin()); |
} |
void HTMLResourcePreloader::preload(PassOwnPtr<PreloadRequest> preload, const NetworkHintsInterface& networkHintsInterface) |