[printing] Convert PrintHostMsg_UpdatePrintSettings to Mojo
This CL converts PrintHostMsg_UpdatePrintSettings message to UpdatePrintSettings() in mojom::PrintManagerHost. It introduces several helper functions to access PrinterQuery which runs on IO thread like GetDefaultPrintSettings(). UpdatePrintSettings() is called on UI thread and posted to IO thread for PrintViewManagerBase to update the settings. It removes NupPrintingTestDelegate and PrintingMessageFilter::TestDelegate. Instead, it adds TestPrintViewManager to override UpdatePrintSettings() for N-up setting. Bug: 1008939 Change-Id: I2f5d876c9139122673e103fb31a425a61398bdbd Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2452129Reviewed-by:Lei Zhang <thestig@chromium.org> Reviewed-by:
Sam McNally <sammc@chromium.org> Reviewed-by:
Dave Tapuska <dtapuska@chromium.org> Commit-Queue: Julie Kim <jkim@igalia.com> Cr-Commit-Position: refs/heads/master@{#818768}
Showing
Please register or sign in to comment