commit | a20c76b17b04fe845136a271fc162dc563be6518 | [log] [tgz] |
---|---|---|
author | Andy Phan <andyphan@chromium.org> | Tue Apr 23 21:40:27 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Apr 23 21:40:27 2024 |
tree | 7c8deb413305d5914de709d5c7ff33f3bd67bc49 | |
parent | 39581a57709888c307117ff89e06be67a245fc08 [diff] |
[OOPIF PDF] Move PDF extension navigation into a helper method Move the PDF extension URL navigation code from PdfViewerStreamManager::DidFinishNavigation() to PdfViewerStreamManager::NavigateToPdfExtensionUrl(). This makes DidFinishNavigation() easier to read, but it also allows TestPdfViewerStreamManager to override it for testing loading PDFs before the PDF extension loads. See https://crrev.com/c/5455932. Add an additional parameter to NavigateToPdfExtensionUrl() that can be used by subclasses to get the other parameters safely in callbacks. This parameter is only used in subclasses and not PdfViewerStreamManager itself. There should be no visible behavioral change in this CL. Bug: 324636880 Change-Id: I4c838cec27c3452c463648209a6d1951e831fa95 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5455370 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Andy Phan <andyphan@chromium.org> Cr-Commit-Position: refs/heads/main@{#1291553}
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.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
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.
If you found a bug, please file it at https://crbug.com/new.