Ensure N-up PDF conversion failures notify Print Preview UI
From crbug.com/1000936, failures in doing conversion of PDF for N-up caused the Print Preview UI to endlessly spin in the "Loading preview ..." state without ever showing that it had failed. Wrap the N-up conversion calls' callbacks with mojo::WrapCallbackWithDefaultInvokeIfNotRun() so that a status is provided even if the utility process disappears before completing. Update the OnN-up<something>Done() callbacks to include a notification call to the Print Preview UI to report errors. Bug: 1003171 Change-Id: Ifd3b249196256b6186569d5a41b10ea39763f1dc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1823801Reviewed-by:Lei Zhang <thestig@chromium.org> Commit-Queue: Alan Screen <awscreen@chromium.org> Cr-Commit-Position: refs/heads/master@{#699958}
Showing
Please register or sign in to comment