fix: when building with enable_pdf_viewer = false (#22604)

This commit is contained in:
Milan Burda 2020-03-10 11:53:29 +01:00 committed by GitHub
parent bf75e5a91f
commit b081fc3ac3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -389,7 +389,11 @@ bool RendererClientBase::IsPluginHandledExternally(
bool RendererClientBase::IsOriginIsolatedPepperPlugin(
const base::FilePath& plugin_path) {
#if BUILDFLAG(ENABLE_PDF_VIEWER)
return plugin_path.value() == kPdfPluginPath;
#else
return false;
#endif
}
std::unique_ptr<blink::WebPrescientNetworking>