Index: content/worker/worker_webkitplatformsupport_impl.cc |
diff --git a/content/worker/worker_webkitplatformsupport_impl.cc b/content/worker/worker_webkitplatformsupport_impl.cc |
index 10bca9478837989324be10fb9e50d2a9dc6049b2..3a57f9486d6d730d28bd4ad905932481afef7a70 100644 |
--- a/content/worker/worker_webkitplatformsupport_impl.cc |
+++ b/content/worker/worker_webkitplatformsupport_impl.cc |
@@ -142,18 +142,11 @@ bool WorkerWebKitPlatformSupportImpl::isLinkVisited( |
return false; |
} |
-WebMessagePortChannel* |
-WorkerWebKitPlatformSupportImpl::createMessagePortChannel() { |
- return new WebMessagePortChannelImpl(child_thread_loop_.get()); |
-} |
- |
void WorkerWebKitPlatformSupportImpl::createMessageChannel( |
blink::WebMessagePortChannel** channel1, |
blink::WebMessagePortChannel** channel2) { |
- *channel1 = new WebMessagePortChannelImpl(child_thread_loop_.get()); |
- *channel2 = new WebMessagePortChannelImpl(child_thread_loop_.get()); |
- (*channel1)->entangle(*channel2); |
- (*channel2)->entangle(*channel1); |
+ WebMessagePortChannelImpl::CreatePair( |
+ child_thread_loop_.get(), channel1, channel2); |
} |
void WorkerWebKitPlatformSupportImpl::setCookies( |