Avoid storing pending requests in OpenPDFParamsParser. OpenPDFParamsParser currently maintains an array of requests and assumes they will get replied in the same order. By changing the return type of getNamedDestinationCallback() to a promise, this CL enables getViewportFromUrlParams() to handle the data returned by the plugin directly, without storing all the requests inside OpenPDFParamsParser. This CL also removes the usage of onNamedDestinationReceived() from browser tests. Bug: 55776,535978,748852 Change-Id: If6e8285a363d2efee169457856ca465cb498805a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2391102 Commit-Queue: Hui Yingst <nigi@chromium.org> Reviewed-by: Rebekah Potter <rbpotter@chromium.org> Cr-Commit-Position: refs/heads/master@{#809449}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.