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

Unified Diff: third_party/WebKit/Source/core/dom/MessagePort.cpp

Issue 1750453002: Reduce ActiveDOMObjects from core/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/dom/MessagePort.cpp
diff --git a/third_party/WebKit/Source/core/dom/MessagePort.cpp b/third_party/WebKit/Source/core/dom/MessagePort.cpp
index 82fceb6323bcb4e60f579de0bd8237c96e17745e..4c57d77312993f2a3d103b8fd08eae3ce3d89b26 100644
--- a/third_party/WebKit/Source/core/dom/MessagePort.cpp
+++ b/third_party/WebKit/Source/core/dom/MessagePort.cpp
@@ -45,13 +45,11 @@ namespace blink {
MessagePort* MessagePort::create(ExecutionContext& executionContext)
{
- MessagePort* port = new MessagePort(executionContext);
- port->suspendIfNeeded();
- return port;
+ return new MessagePort(executionContext);
}
MessagePort::MessagePort(ExecutionContext& executionContext)
- : ActiveDOMObject(&executionContext)
+ : ContextLifecycleObserver(&executionContext)
, m_started(false)
, m_closed(false)
, m_weakFactory(this)
@@ -278,7 +276,7 @@ MessagePortArray* MessagePort::entanglePorts(ExecutionContext& context, PassOwnP
DEFINE_TRACE(MessagePort)
{
- ActiveDOMObject::trace(visitor);
+ ContextLifecycleObserver::trace(visitor);
RefCountedGarbageCollectedEventTargetWithInlineData<MessagePort>::trace(visitor);
}

Powered by Google App Engine
This is Rietveld 408576698