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

Co-authored-by: Milan Burda <milan.burda@gmail.com>
This commit is contained in:
trop[bot]
2020-03-10 10:54:07 -04:00
committed by GitHub
parent 16c4d6e487
commit 851ed7a6e7

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>