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

Unified Diff: third_party/WebKit/Source/core/timing/PerformanceBaseTest.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/timing/PerformanceBaseTest.cpp
diff --git a/third_party/WebKit/Source/core/timing/PerformanceBaseTest.cpp b/third_party/WebKit/Source/core/timing/PerformanceBaseTest.cpp
index d92af6cdbf66439bc9950abc47ab8d1c1e2c9cec..c17d5d6494fad498491750d1175e4524ec89701b 100644
--- a/third_party/WebKit/Source/core/timing/PerformanceBaseTest.cpp
+++ b/third_party/WebKit/Source/core/timing/PerformanceBaseTest.cpp
@@ -6,6 +6,7 @@
#include "bindings/core/v8/PerformanceObserverCallback.h"
#include "bindings/core/v8/V8BindingForTesting.h"
+#include "core/dom/ExecutionContext.h"
#include "core/dom/TaskRunnerHelper.h"
#include "core/testing/DummyPageHolder.h"
#include "core/testing/NullExecutionContext.h"
@@ -46,8 +47,8 @@ class PerformanceBaseTest : public ::testing::Test {
v8::Function::New(script_state->GetContext(), nullptr).ToLocalChecked();
base_ = new TestPerformanceBase(script_state);
cb_ = PerformanceObserverCallback::Create(script_state, callback);
- observer_ = PerformanceObserver::Create(script_state->GetExecutionContext(),
- base_, cb_);
+ observer_ = PerformanceObserver::Create(
+ ExecutionContext::From(script_state), base_, cb_);
}
void SetUp() override {

Powered by Google App Engine
This is Rietveld 408576698