PDF extension tests: Remove dependency on PDFScriptingAPI
In order to migrate pdf_scripting_api.js to be a module script for the Print Preview Polymer 3 migration, we need to stop executing it as a standard script in EnsurePDFHasLoaded and pdf_extension_test.cc. Since the current usage of this script only relies on a few lines of logic contained in the PDF scripting API rather than the entire class, inline these lines in C++ rather than injecting pdf_scripting_api.js. Bug: 1012574 Change-Id: Ib2b43b83819102c19be20a58e163f04b7c0d6e2c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1902257Reviewed-by:Demetrios Papadopoulos <dpapad@chromium.org> Reviewed-by:
Lei Zhang <thestig@chromium.org> Commit-Queue: Rebekah Potter <rbpotter@chromium.org> Cr-Commit-Position: refs/heads/master@{#713916}
Showing
Please register or sign in to comment