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

Unified Diff: third_party/WebKit/Source/core/fetch/ResourceFetcherTest.cpp

Issue 1987413002: Add link preload as=document support Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: crash fix Created 4 years, 3 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/fetch/ResourceFetcherTest.cpp
diff --git a/third_party/WebKit/Source/core/fetch/ResourceFetcherTest.cpp b/third_party/WebKit/Source/core/fetch/ResourceFetcherTest.cpp
index 9f748b065c1532afcb9df30f011593bba130eb7c..37995f1c4d94b1bd8e036d10cb5e462bfe50f214 100644
--- a/third_party/WebKit/Source/core/fetch/ResourceFetcherTest.cpp
+++ b/third_party/WebKit/Source/core/fetch/ResourceFetcherTest.cpp
@@ -74,7 +74,7 @@ public:
bool allowImage(bool imagesEnabled, const KURL&) const override { return true; }
bool canRequest(Resource::Type, const ResourceRequest&, const KURL&, const ResourceLoaderOptions&, bool forPreload, FetchRequest::OriginRestriction) const override { return true; }
- bool shouldLoadNewResource(Resource::Type) const override { return true; }
+ bool shouldLoadNewResource(Resource::Type, const WebURLRequest::FrameType) const override { return true; }
WebTaskRunner* loadingTaskRunner() const override { return m_runner.get(); }
void setCachePolicy(CachePolicy policy) { m_policy = policy; }

Powered by Google App Engine
This is Rietveld 408576698