diff options
author | marja@chromium.org <marja@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-07 08:19:55 +0000 |
---|---|---|
committer | marja@chromium.org <marja@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-07 08:19:55 +0000 |
commit | eaa38b393073a59ccdc66ae83261c4ccfa63566b (patch) | |
tree | bd8b73b363619d921f3c56e37dc04f938973f999 /content/worker | |
parent | fd908e678588a998d8c9c666090ed9b50ff8bda8 (diff) | |
download | chromium_src-eaa38b393073a59ccdc66ae83261c4ccfa63566b.zip chromium_src-eaa38b393073a59ccdc66ae83261c4ccfa63566b.tar.gz chromium_src-eaa38b393073a59ccdc66ae83261c4ccfa63566b.tar.bz2 |
Remove dead IPC WorkerMsg_PostMessage.
Some places claimed to send this message, but nobody claimed to receive it, so
it's dead.
When the IPC was originally added in https://codereview.chromium.org/160576,
there was a receiver. The something changed, and the file containing the
receiver was removed by http://codereview.chromium.org/8416029.
This might be related to the fact that we cannot do myWorker = new
SharedWorker(); myWorker.postMessage() (but we need to do
myWorker.port.postMessage()).
BUG=NONE
R=atwilson@chromium.org, dslomov@chromium.org, jochen@chromium.org, tsepez@chromium.org
TBR=tsepez
Review URL: https://codereview.chromium.org/25674003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@227263 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/worker')
-rw-r--r-- | content/worker/websharedworkerclient_proxy.cc | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/content/worker/websharedworkerclient_proxy.cc b/content/worker/websharedworkerclient_proxy.cc index ec2e264..97fc224 100644 --- a/content/worker/websharedworkerclient_proxy.cc +++ b/content/worker/websharedworkerclient_proxy.cc @@ -50,19 +50,8 @@ WebSharedWorkerClientProxy::~WebSharedWorkerClientProxy() { void WebSharedWorkerClientProxy::postMessageToWorkerObject( const WebString& message, const WebMessagePortChannelArray& channels) { - std::vector<int> message_port_ids(channels.size()); - std::vector<int> routing_ids(channels.size()); - for (size_t i = 0; i < channels.size(); ++i) { - WebMessagePortChannelImpl* webchannel = - static_cast<WebMessagePortChannelImpl*>(channels[i]); - message_port_ids[i] = webchannel->message_port_id(); - webchannel->QueueMessages(); - DCHECK(message_port_ids[i] != MSG_ROUTING_NONE); - routing_ids[i] = MSG_ROUTING_NONE; - } - - Send(new WorkerMsg_PostMessage( - route_id_, message, message_port_ids, routing_ids)); + // TODO(marja): Clean up the interface; this function doesn't need to exist. + NOTREACHED(); } void WebSharedWorkerClientProxy::postExceptionToWorkerObject( |