| Index: third_party/WebKit/Source/core/testing/OriginTrialsTest.cpp
|
| diff --git a/third_party/WebKit/Source/core/testing/OriginTrialsTest.cpp b/third_party/WebKit/Source/core/testing/OriginTrialsTest.cpp
|
| index e1e46f89df27134e18e81ca55a28a870c3f774bf..d2e920b032331acaa0b07fcc9bbedeaef7e2cfdb 100644
|
| --- a/third_party/WebKit/Source/core/testing/OriginTrialsTest.cpp
|
| +++ b/third_party/WebKit/Source/core/testing/OriginTrialsTest.cpp
|
| @@ -6,6 +6,7 @@
|
|
|
| #include "bindings/core/v8/ExceptionState.h"
|
| #include "core/dom/ExceptionCode.h"
|
| +#include "core/dom/ExecutionContext.h"
|
| #include "core/origin_trials/OriginTrials.h"
|
|
|
| namespace blink {
|
| @@ -23,7 +24,7 @@ bool OriginTrialsTest::throwingAttribute(ScriptState* script_state,
|
| ExceptionState& exception_state) {
|
| String error_message;
|
| if (!OriginTrials::originTrialsSampleAPIEnabled(
|
| - script_state->GetExecutionContext())) {
|
| + ExecutionContext::From(script_state))) {
|
| exception_state.ThrowDOMException(
|
| kNotSupportedError,
|
| "The Origin Trials Sample API has not been enabled in this context");
|
|
|