| Index: third_party/WebKit/Source/platform/feature_policy/FeaturePolicyFuzzer.cpp
|
| diff --git a/third_party/WebKit/Source/platform/feature_policy/FeaturePolicyFuzzer.cpp b/third_party/WebKit/Source/platform/feature_policy/FeaturePolicyFuzzer.cpp
|
| index e64189576fa3eeb481d3cf5bd0c3e0913697790a..041a414aad93d295ff57f31419beb25e839a3ce9 100644
|
| --- a/third_party/WebKit/Source/platform/feature_policy/FeaturePolicyFuzzer.cpp
|
| +++ b/third_party/WebKit/Source/platform/feature_policy/FeaturePolicyFuzzer.cpp
|
| @@ -17,9 +17,8 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
|
| WTF::Vector<WTF::String> messages;
|
| RefPtr<blink::SecurityOrigin> origin =
|
| blink::SecurityOrigin::createFromString("https://example.com/");
|
| - std::unique_ptr<blink::FeaturePolicy> policy =
|
| - blink::FeaturePolicy::createFromParentPolicy(nullptr, origin);
|
| - policy->setHeaderPolicy(WTF::String(data, size), &messages);
|
| + blink::FeaturePolicy::parseFeaturePolicy(WTF::String(data, size),
|
| + origin.get(), &messages);
|
| return 0;
|
| }
|
|
|
|
|