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

Unified Diff: third_party/WebKit/Source/core/timing/PerformanceBaseTest.cpp

Issue 2549673004: Remove RefPtr<ScriptState> from PerformanceObserver (Closed)
Patch Set: temp Created 4 years 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 fa6848f9df68f268a0f4ac28f0cbf0cd5490b780..1ff271cd886a065e9cf9992dc8ca54fc64cecf59 100644
--- a/third_party/WebKit/Source/core/timing/PerformanceBaseTest.cpp
+++ b/third_party/WebKit/Source/core/timing/PerformanceBaseTest.cpp
@@ -40,7 +40,8 @@ class PerformanceBaseTest : public ::testing::Test {
v8::Function::New(scriptState->context(), nullptr).ToLocalChecked();
m_base = new TestPerformanceBase();
m_cb = PerformanceObserverCallback::create(scriptState, callback);
- m_observer = PerformanceObserver::create(scriptState, m_base, m_cb);
+ m_observer = PerformanceObserver::create(scriptState->getExecutionContext(),
+ m_base, m_cb);
}
void SetUp() override {

Powered by Google App Engine
This is Rietveld 408576698