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

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

Issue 2535383003: Collapse images disallowed by the Safe Browsing Subresource Filter. (Closed)
Patch Set: Rebase. Created 4 years 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/ImageResourceTest.cpp
diff --git a/third_party/WebKit/Source/core/fetch/ImageResourceTest.cpp b/third_party/WebKit/Source/core/fetch/ImageResourceTest.cpp
index 82f6294f2150cf07a21814ee7981e9def4cebaed..69ef2034bd57a07706fc29f8e7946cb5226208d4 100644
--- a/third_party/WebKit/Source/core/fetch/ImageResourceTest.cpp
+++ b/third_party/WebKit/Source/core/fetch/ImageResourceTest.cpp
@@ -171,13 +171,14 @@ class ImageResourceTestMockFetchContext : public FetchContext {
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;
+ ResourceRequestBlockedReason canRequest(
+ Resource::Type,
+ const ResourceRequest&,
+ const KURL&,
+ const ResourceLoaderOptions&,
+ bool forPreload,
+ FetchRequest::OriginRestriction) const override {
+ return ResourceRequestBlockedReason::None;
}
bool shouldLoadNewResource(Resource::Type) const override { return true; }
WebTaskRunner* loadingTaskRunner() const override { return m_runner.get(); }
« no previous file with comments | « third_party/WebKit/Source/core/fetch/ImageResource.cpp ('k') | third_party/WebKit/Source/core/fetch/MockFetchContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698