[Printing] Return early in pdfWritingDone() if there is no printing task
pdfWritingDone() will be called even there is no printing task. This is because native will report printing failure as |pageCount| = 0 for pdfWritingDone(). This CL makes pdfWritingDone() do the clean up tasks for only PRINTING_STATE_STARTED_FROM_ONWRITE state. Bug: 974581 Change-Id: Id69025ecdd2b874e0412b1dbabdb9a00b3a252f2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1674689 Commit-Queue: Shimi Zhang <ctzsm@chromium.org> Reviewed-by:Ted Choc <tedchoc@chromium.org> Cr-Commit-Position: refs/heads/master@{#672551}
Showing
Please register or sign in to comment