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

Unified Diff: Source/core/html/parser/HTMLResourcePreloader.cpp

Issue 14672042: Prepare to add more initiator info to CachedResource(Request) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 7 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
« no previous file with comments | « Source/core/html/HTMLLinkElement.cpp ('k') | Source/core/loader/DocumentLoader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/parser/HTMLResourcePreloader.cpp
diff --git a/Source/core/html/parser/HTMLResourcePreloader.cpp b/Source/core/html/parser/HTMLResourcePreloader.cpp
index 7da5f44186ef11ea1a7d92d3a873f59b4d55ac5b..4af7b11b4579ed9be804c1fcf6c823f0349004fd 100644
--- a/Source/core/html/parser/HTMLResourcePreloader.cpp
+++ b/Source/core/html/parser/HTMLResourcePreloader.cpp
@@ -52,8 +52,7 @@ KURL PreloadRequest::completeURL(Document* document)
CachedResourceRequest PreloadRequest::resourceRequest(Document* document)
{
ASSERT(isMainThread());
- CachedResourceRequest request(ResourceRequest(completeURL(document)));
- request.setInitiator(m_initiator);
+ CachedResourceRequest request(ResourceRequest(completeURL(document)), m_initiator);
// FIXME: It's possible CORS should work for other request types?
if (m_resourceType == CachedResource::Script)
« no previous file with comments | « Source/core/html/HTMLLinkElement.cpp ('k') | Source/core/loader/DocumentLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698