Handle crashing Pepper plug-ins the same as crashing NPAPI plug-ins.

BUG=151895

Review URL: https://chromiumcodereview.appspot.com/10956065

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158364 0039d316-1c4b-4281-b951-d872f2087c98
void PluginInfoMessageFilter::PluginsLoaded(
    const GetPluginInfo_Params& params,
    IPC::Message* reply_msg,
    const std::vector<WebPluginInfo>& plugins) {
  ChromeViewHostMsg_GetPluginInfo_Output output;
  if (!context_.FindEnabledPlugin(params.render_view_id, params.url,
                                  params.top_origin_url, params.mime_type,
                                  &output.status, &output.plugin,
                                  &output.actual_mime_type)) {
    ChromeViewHostMsg_GetPluginInfo::WriteReplyParams(reply_msg, output);
    Send(reply_msg);
    return;
  }

  PluginFinder::Get(base::Bind(&PluginInfoMessageFilter::GotPluginFinder, this,
                               params, reply_msg, output));
}

void PluginInfoMessageFilter::PluginsLoaded(
    const GetPluginInfo_Params& params,
    IPC::Message* reply_msg,
    const std::vector<WebPluginInfo>& plugins) {
  ChromeViewHostMsg_GetPluginInfo_Output output;
  if (!context_.FindEnabledPlugin(params.render_view_id, params.url,
                                  params.top_origin_url, params.mime_type,
                                  &output.status, &output.plugin,
                                  &output.actual_mime_type)) {
    ChromeViewHostMsg_GetPluginInfo::WriteReplyParams(reply_msg, output);
    Send(reply_msg);
    return;
  }

  PluginFinder::Get(base::Bind(&PluginInfoMessageFilter::GotPluginFinder, this,
                               params, reply_msg, output));
}
