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 71c4353b488f041478036f3c4f42a84566d0afb8..aa0d19ece0b2f86d58c78966365c2a4bd66fbdf9 100644 |
--- a/third_party/WebKit/Source/core/html/parser/PreloadRequest.cpp |
+++ b/third_party/WebKit/Source/core/html/parser/PreloadRequest.cpp |
@@ -77,13 +77,7 @@ |
params.SetCharset(charset_.IsEmpty() ? document->characterSet().GetString() |
: charset_); |
} |
- FetchParameters::SpeculativePreloadType speculative_preload_type = |
- FetchParameters::SpeculativePreloadType::kInDocument; |
- if (from_insertion_scanner_) { |
- speculative_preload_type = |
- FetchParameters::SpeculativePreloadType::kInserted; |
- } |
- params.SetSpeculativePreloadType(speculative_preload_type, discovery_time_); |
+ params.SetSpeculativePreload(true, discovery_time_); |
return document->Loader()->StartPreload(resource_type_, params); |
} |