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); |
} |