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

Unified Diff: third_party/WebKit/Source/platform/LifecycleContextTest.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/platform/LifecycleContextTest.cpp
diff --git a/third_party/WebKit/Source/platform/LifecycleContextTest.cpp b/third_party/WebKit/Source/platform/LifecycleContextTest.cpp
index 4d3fca75d924d9c730aad3b45d992cbb048e978c..0aee4ae705edcbf849fc6394821189928d5f4a91 100644
--- a/third_party/WebKit/Source/platform/LifecycleContextTest.cpp
+++ b/third_party/WebKit/Source/platform/LifecycleContextTest.cpp
@@ -56,10 +56,9 @@ class TestingObserver final
return new TestingObserver(context);
}
- void contextDestroyed() override {
- LifecycleObserver::contextDestroyed();
+ void contextDestroyed(DummyContext* destroyedContext) override {
if (m_observerToRemoveOnDestruct) {
- lifecycleContext()->removeObserver(m_observerToRemoveOnDestruct);
+ destroyedContext->removeObserver(m_observerToRemoveOnDestruct);
m_observerToRemoveOnDestruct.clear();
}
m_contextDestroyedCalled = true;
« no previous file with comments | « third_party/WebKit/Source/modules/webusb/USBDevice.cpp ('k') | third_party/WebKit/Source/platform/LifecycleNotifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698