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

Unified Diff: third_party/WebKit/Source/core/testing/OriginTrialsTest.cpp

Issue 2811863002: Move ScriptState::GetExecutionContext (Part 4) (Closed)
Patch Set: Fix Document.cpp Created 3 years, 8 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/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");
« no previous file with comments | « third_party/WebKit/Source/core/testing/DictionaryTest.cpp ('k') | third_party/WebKit/Source/core/testing/WorkerInternals.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698