Commit ac814513 authored by raymes@google.com's avatar raymes@google.com

Remove check for full-page plugin when handling unsupported PDF feature

The out of process PDF plugin is never a "full-page" plugin because it is
always embedded in an extension. There is a check inside the PDF plugin
to make sure is being loaded in the top frame before calling this function.

BUG=303491
R=jam@chromium.org

Review URL: https://codereview.chromium.org/285373010

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271584 0039d316-1c4b-4281-b951-d872f2087c98
parent a77d3fa2
......@@ -206,10 +206,6 @@ int32_t PepperPDFHost::OnHostMsgHasUnsupportedFeature(
if (!instance)
return PP_ERROR_FAILED;
// Only want to show an info bar if the pdf is the whole tab.
if (!instance->IsFullPagePlugin())
return PP_OK;
blink::WebView* view =
instance->GetContainer()->element().document().frame()->view();
content::RenderView* render_view = content::RenderView::FromWebView(view);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment