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

Unified Diff: third_party/WebKit/Source/core/timing/PerformanceObserverTest.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/PerformanceObserverTest.cpp
diff --git a/third_party/WebKit/Source/core/timing/PerformanceObserverTest.cpp b/third_party/WebKit/Source/core/timing/PerformanceObserverTest.cpp
index bebd97c38c3b28b6e84b4c9796d9a8dceaea2f8e..16aa20c5f6cb75acb024fe0a77cf18ff60a8d447 100644
--- a/third_party/WebKit/Source/core/timing/PerformanceObserverTest.cpp
+++ b/third_party/WebKit/Source/core/timing/PerformanceObserverTest.cpp
@@ -29,7 +29,8 @@ class PerformanceObserverTest : public ::testing::Test {
v8::Function::New(scriptState->context(), nullptr).ToLocalChecked();
m_base = new MockPerformanceBase();
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);
}
bool isRegistered() { return m_observer->m_isRegistered; }

Powered by Google App Engine
This is Rietveld 408576698