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

Unified Diff: third_party/WebKit/Source/core/html/parser/PreloadRequest.cpp

Issue 2676163002: Refactor the forPreload flag to mean speculative preload. (Closed)
Patch Set: Renamed ReportingPolicy and moved comments Created 3 years, 10 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: third_party/WebKit/Source/core/html/parser/PreloadRequest.cpp
diff --git a/third_party/WebKit/Source/core/html/parser/PreloadRequest.cpp b/third_party/WebKit/Source/core/html/parser/PreloadRequest.cpp
index e8d296e1da8c5dead88849ffdd8215d100f9b81b..aefdfa3f7c67387d92cc0fd342c0b0722991bdb5 100644
--- a/third_party/WebKit/Source/core/html/parser/PreloadRequest.cpp
+++ b/third_party/WebKit/Source/core/html/parser/PreloadRequest.cpp
@@ -74,7 +74,7 @@ Resource* PreloadRequest::start(Document* document) {
request.setCharset(
m_charset.isEmpty() ? document->characterSet().getString() : m_charset);
}
- request.setForPreload(true, m_discoveryTime);
+ request.setSpeculativePreload(true, m_discoveryTime);
return document->loader()->startPreload(m_resourceType, request);
}

Powered by Google App Engine
This is Rietveld 408576698