| Index: content/browser/plugin_service_impl.cc
|
| diff --git a/content/browser/plugin_service_impl.cc b/content/browser/plugin_service_impl.cc
|
| index 65c9631a9d27ff2d201d4cef437bd4237ffa43a8..99924b14420e42b8b8c7aad34138d6e90260cd12 100644
|
| --- a/content/browser/plugin_service_impl.cc
|
| +++ b/content/browser/plugin_service_impl.cc
|
| @@ -337,20 +337,26 @@ void PluginServiceImpl::OpenChannelToPpapiPlugin(
|
| PpapiPluginProcessHost::PluginClient* client) {
|
| PpapiPluginProcessHost* plugin_host = FindOrStartPpapiPluginProcess(
|
| path, client);
|
| - if (plugin_host)
|
| + if (plugin_host) {
|
| plugin_host->OpenChannelToPlugin(client);
|
| - else // Send error.
|
| - client->OnChannelOpened(base::kNullProcessHandle, IPC::ChannelHandle());
|
| + } else {
|
| + // Send error.
|
| + client->OnPpapiChannelOpened(base::kNullProcessHandle,
|
| + IPC::ChannelHandle());
|
| + }
|
| }
|
|
|
| void PluginServiceImpl::OpenChannelToPpapiBroker(
|
| const FilePath& path,
|
| PpapiPluginProcessHost::BrokerClient* client) {
|
| PpapiPluginProcessHost* plugin_host = FindOrStartPpapiBrokerProcess(path);
|
| - if (plugin_host)
|
| + if (plugin_host) {
|
| plugin_host->OpenChannelToPlugin(client);
|
| - else // Send error.
|
| - client->OnChannelOpened(base::kNullProcessHandle, IPC::ChannelHandle());
|
| + } else {
|
| + // Send error.
|
| + client->OnPpapiChannelOpened(base::kNullProcessHandle,
|
| + IPC::ChannelHandle());
|
| + }
|
| }
|
|
|
| void PluginServiceImpl::CancelOpenChannelToNpapiPlugin(
|
|
|