Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not communicate with printer driver on Print Preview refresh
PrintViewManagerBase::UpdatePrintSettings() is used only for Print Preview, to re-render the pages. UpdatePrintSettings() makes calls to printer drivers to fetch settings, but it really only needs the rendering parameters already provided from the job settings. Remove the calls to the printer driver and use only the rendering parameters directly. To do so, some of the following changes occurred: 1. Change PrintViewManagerBase::UpdatePrintSettings() signature, since the call can no longer be cancelled. 2. In print_browsertest.cc and test_print_view_manager.h, change the UpdatePrintSettings test to snoop PrintPagesParams instead. Check advanced settings in a different test that has direct access to PrintSettings. 3. In print_render_frame_helper_browsertest.cc, add parameters to the print settings dictionary needed for PrintRenderFrameHelper::UpdatePrintSettings() to succeed. Modify the tests and test setup to handle these parameters. Fixed: 879284 Change-Id: Ibd085821532733c1a891782b21667567bb9e7428 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3893234 Reviewed-by: Alan Screen <awscreen@chromium.org> Commit-Queue: Andy Phan <andyphan@chromium.org> Reviewed-by: Alex Gough <ajgo@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org> Cr-Commit-Position: refs/heads/main@{#1117252}
- Loading branch information
Andy Phan
authored and
Chromium LUCI CQ
committed
Mar 14, 2023
1 parent
c5de22f
commit 7b6524c
Showing
10 changed files
with
151 additions
and
243 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.