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

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

Issue 2629593004: Disambiguate LifecycleObserver::contextDestroyed (Closed)
Patch Set: temp Created 3 years, 11 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/Performance.cpp
diff --git a/third_party/WebKit/Source/core/timing/Performance.cpp b/third_party/WebKit/Source/core/timing/Performance.cpp
index 6837afa6c4809db9f263fc73de173c5ed24915dd..be8ca988df6026ca8dcce36cc0795cb4392c98e0 100644
--- a/third_party/WebKit/Source/core/timing/Performance.cpp
+++ b/third_party/WebKit/Source/core/timing/Performance.cpp
@@ -106,8 +106,11 @@ Performance::Performance(LocalFrame* frame)
Performance::~Performance() {
}
-void Performance::contextDestroyed() {
- frame()->performanceMonitor()->unsubscribeAll(this);
+void Performance::contextDestroyed(ExecutionContext* destroyedContext) {
+ toDocument(destroyedContext)
+ ->frame()
+ ->performanceMonitor()
+ ->unsubscribeAll(this);
}
ExecutionContext* Performance::getExecutionContext() const {
« no previous file with comments | « third_party/WebKit/Source/core/timing/Performance.h ('k') | third_party/WebKit/Source/core/workers/DedicatedWorkerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698