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

Unified Diff: third_party/WebKit/Source/modules/presentation/PresentationConnectionList.cpp

Issue 2558643004: Remove ContextLifecycleObserver from PresentationConnectionList (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
« no previous file with comments | « third_party/WebKit/Source/modules/presentation/PresentationConnectionList.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/presentation/PresentationConnectionList.cpp
diff --git a/third_party/WebKit/Source/modules/presentation/PresentationConnectionList.cpp b/third_party/WebKit/Source/modules/presentation/PresentationConnectionList.cpp
index 669f9767950ffcf280da50161a252f1d68a0051b..dc215aa4395237e1b5f19536ca96c3065a0ebc33 100644
--- a/third_party/WebKit/Source/modules/presentation/PresentationConnectionList.cpp
+++ b/third_party/WebKit/Source/modules/presentation/PresentationConnectionList.cpp
@@ -13,16 +13,12 @@ namespace blink {
PresentationConnectionList::PresentationConnectionList(
ExecutionContext* context)
- : ContextLifecycleObserver(context) {}
+ : m_executionContext(context) {}
const AtomicString& PresentationConnectionList::interfaceName() const {
return EventTargetNames::PresentationConnectionList;
}
-ExecutionContext* PresentationConnectionList::getExecutionContext() const {
- return ContextLifecycleObserver::getExecutionContext();
-}
-
const HeapVector<Member<PresentationConnection>>&
PresentationConnectionList::connections() const {
return m_connections;
@@ -55,7 +51,7 @@ bool PresentationConnectionList::isEmpty() {
DEFINE_TRACE(PresentationConnectionList) {
visitor->trace(m_connections);
- ContextLifecycleObserver::trace(visitor);
+ visitor->trace(m_executionContext);
EventTargetWithInlineData::trace(visitor);
}
« no previous file with comments | « third_party/WebKit/Source/modules/presentation/PresentationConnectionList.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698