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

Unified Diff: third_party/WebKit/Source/core/timing/PerformanceObserverTest.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/PerformanceObserverTest.cpp
diff --git a/third_party/WebKit/Source/core/timing/PerformanceObserverTest.cpp b/third_party/WebKit/Source/core/timing/PerformanceObserverTest.cpp
index 81b805ce23b8327a316a16ade5558678539d584f..89e6ed47afa8e3c3552171f62eeb7ea156095ba5 100644
--- a/third_party/WebKit/Source/core/timing/PerformanceObserverTest.cpp
+++ b/third_party/WebKit/Source/core/timing/PerformanceObserverTest.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/timing/Performance.h"
#include "core/timing/PerformanceBase.h"
@@ -33,8 +34,8 @@ class PerformanceObserverTest : public ::testing::Test {
v8::Function::New(script_state->GetContext(), nullptr).ToLocalChecked();
base_ = new MockPerformanceBase(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_);
}
bool IsRegistered() { return observer_->is_registered_; }

Powered by Google App Engine
This is Rietveld 408576698