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

Unified Diff: third_party/WebKit/Source/core/frame/SubresourceIntegrityTest.cpp

Issue 2399473002: Remove Resource::create() to ensure proper subclasses of Resource are created (Closed)
Patch Set: Rebase Created 4 years, 2 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/frame/SubresourceIntegrityTest.cpp
diff --git a/third_party/WebKit/Source/core/frame/SubresourceIntegrityTest.cpp b/third_party/WebKit/Source/core/frame/SubresourceIntegrityTest.cpp
index 85aab8c32fe1c9723d70a7b71007e4ce51a71b42..c9f3e39f7daf4c0cb383847de134c0f6ae61a9d8 100644
--- a/third_party/WebKit/Source/core/frame/SubresourceIntegrityTest.cpp
+++ b/third_party/WebKit/Source/core/frame/SubresourceIntegrityTest.cpp
@@ -7,6 +7,7 @@
#include "core/HTMLNames.h"
#include "core/dom/Document.h"
#include "core/fetch/IntegrityMetadata.h"
+#include "core/fetch/RawResource.h"
#include "core/fetch/Resource.h"
#include "core/html/HTMLScriptElement.h"
#include "platform/Crypto.h"
@@ -205,7 +206,7 @@ class SubresourceIntegrityTest : public ::testing::Test {
response.setHTTPHeaderField("access-control-allow-credentials", "true");
}
Resource* resource =
- Resource::create(ResourceRequest(response.url()), Resource::Raw);
+ RawResource::create(ResourceRequest(response.url()), Resource::Raw);
resource->setResponse(response);
return resource;
}
« no previous file with comments | « third_party/WebKit/Source/core/fetch/ResourceTest.cpp ('k') | third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698