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

Unified Diff: third_party/WebKit/Source/core/testing/WorkerInternals.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/WorkerInternals.cpp
diff --git a/third_party/WebKit/Source/core/testing/WorkerInternals.cpp b/third_party/WebKit/Source/core/testing/WorkerInternals.cpp
index 2eba88519b346cc863a0661a6258e4f3537cdfd3..42ee53948a1e119a65f732375f22c234cb4b35fb 100644
--- a/third_party/WebKit/Source/core/testing/WorkerInternals.cpp
+++ b/third_party/WebKit/Source/core/testing/WorkerInternals.cpp
@@ -5,6 +5,7 @@
#include "core/testing/WorkerInternals.h"
#include "bindings/core/v8/ScriptState.h"
+#include "core/dom/ExecutionContext.h"
#include "core/frame/Deprecation.h"
#include "core/frame/UseCounter.h"
#include "core/testing/OriginTrialsTest.h"
@@ -21,13 +22,13 @@ OriginTrialsTest* WorkerInternals::originTrialsTest() const {
void WorkerInternals::countFeature(ScriptState* script_state,
uint32_t feature) {
- UseCounter::Count(script_state->GetExecutionContext(),
+ UseCounter::Count(ExecutionContext::From(script_state),
static_cast<UseCounter::Feature>(feature));
}
void WorkerInternals::countDeprecation(ScriptState* script_state,
uint32_t feature) {
- Deprecation::CountDeprecation(script_state->GetExecutionContext(),
+ Deprecation::CountDeprecation(ExecutionContext::From(script_state),
static_cast<UseCounter::Feature>(feature));
}

Powered by Google App Engine
This is Rietveld 408576698