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

Unified Diff: content/worker/worker_webkitplatformsupport_impl.cc

Issue 230183002: Remove unnecessary Platform::createMessagePortChannel method (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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
« no previous file with comments | « content/worker/worker_webkitplatformsupport_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « content/worker/worker_webkitplatformsupport_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698